Bookmarks
Within a WordprocessingML document, bookmarks refer to arbitrary regions of content which are bounded and have a unique name associated with them.
Because bookmarks are a legacy word processing function which predates the concepts of XML and well-formedness, they can start and end at any location within a document's contents and therefore must use the "cross-structure" annotation format described in §2.13.2.
example:
<w:p> <w:r> <w:t>Example</w:t> </w:r> <w:bookmarkStart w:id="0" w:name="sampleBookmark" /> <w:r> <w:t xml:space="preserve"> text.</w:t> </w:r> </w:p> <w:p> <w:r> <w:t>Example</w:t> </w:r> <w:bookmarkEnd w:id="0" /> <w:r> <w:t xml:space="preserve"> text.</w:t> </w:r> </w:p>
The <bookmarkStart>
and <bookmarkEnd>
elements (§2.13.6.2; §2.13.6.1) specify the location where the bookmark starts and ends, but cannot contain it using a single tag because it spans part of two paragraphs. However, the two tags are part of one group because the @id
attribute value specifies 0
for both. ]