diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:55:49 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-29 21:55:49 +0000 |
| commit | 475077337689abeed1db21a832d26dbc2ae88672 (patch) | |
| tree | cea696e01b925550333be6d46f8603887e58b8f7 | |
| parent | 5bc676b074a651a70b3b259182a94120c036d74a (diff) | |
Document style name prefixes
| -rw-r--r-- | README.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -435,6 +435,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, |
