aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-19 12:54:56 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-19 12:54:56 +0000
commit5607cf8f4078601da73d9d4184ecd9a82f96981a (patch)
tree8c2e14854863651cfd1f4636447e7ae3a386d2ed /README.md
parentde9b6417b9d01fd1833ea0ee96c7216cd64cbed5 (diff)
Document style name prefix matching
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index ccbd35f..fa4cbd6 100644
--- a/README.md
+++ b/README.md
@@ -605,6 +605,13 @@ For instance, to match a paragraph with the style name `Heading 1`:
p[style-name='Heading 1']
```
+You can also match a style name by prefix.
+For instance, to match a paragraph where the style name starts with `Heading`:
+
+```
+p[style-name^='Heading']
+```
+
Styles can also be referenced by style ID.
This is the ID used internally in the .docx file.
To match a paragraph or run with a specific style ID,