aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-19 12:55:25 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-19 12:55:25 +0000
commit272a92ca4f43b22c8bccd0a8d591feeab6bfa8fb (patch)
tree33c0cee896819ef0a42feaf7be0a76ef2697d4ee /README.md
parentcbcf214b202e9541303801e9886463edf5a8d42b (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 63623f0..f7a3bb1 100644
--- a/README.md
+++ b/README.md
@@ -309,6 +309,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,