From 475077337689abeed1db21a832d26dbc2ae88672 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Tue, 29 Nov 2016 21:55:49 +0000 Subject: Document style name prefixes --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index a6c3df4..acece48 100644 --- a/README.md +++ b/README.md @@ -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, -- cgit v1.2.3