17.12.6 docPartBody
This element specifies the contents of the parent glossary document entry (17.12.5). These contents shall consist of one or more block-level elements, analogous to the body element (17.2.2) of the main document story for the current document.
[Example: Consider the WordprocessingML fragment for a glossary document entry containing a single run, defined as follows:
<w:docPart>
…
<w:docPartBody>
<w:p>
<w:r>
<w:t>Sample entry.</w:t>
</w:r>
</w:p>
</w:docPartBody>
</w:docPart>
The docPartBody element specifies the block-level elements which comprise the contents of the current glossary document entry, in this case, a single paragraph using the p element (17.3.1.22). end example]
When the contents of a glossary document entry are added to a document, the styles, numbering definitions, and all other related parts for this entry shall be taken from the relationships from the Glossary Document part and not from the main document part. These references shall be moved to their main document equivalents when the entry is added to the document.
When the part is inserted, it shall be inserted as though its last paragraph mark does not exist (the content of the final paragraph mark shall be merged with the contents of the paragraph into which this entry is being added).
[Example: Consider the WordprocessingML fragment for a glossary document entry containing a single run, defined as follows:
<w:docPart>
<w:docPartPr>
<w:behaviors>
<w:behavior w:val="p"/>
</w:behaviors>
…
</w:docPartPr>
<w:docPartBody>
<w:p>
<w:r>
<w:t>Sample entry.</w:t>
</w:r>
</w:p>
</w:docPartBody>
</w:docPart>
If this entry is inserted into document content to which is defined as follows (and the part is added between the two text runs):
<w:body>
<w:p>
<w:r>
<w:t>After this text</w:t>
</w:r>
<w:r>
<w:t>Before this text</w:t>
</w:r>
</w:p>
</w:body>
This entry has only a single paragraph, which is removed before insertion, and barring any special insertion behaviors (17.12.2), only the text run is inserted, resulting in the following WordprocessingML:
<w:body>
<w:p>
<w:r>
<w:t>After this text</w:t>
</w:r>
<w:r>
<w:t>Sample entry.</w:t>
</w:r>
<w:r>
<w:t>Before this text</w:t>
</w:r>
</w:p>
</w:body>
end example]
[Note: The W3C XML Schema definition of this element’s content model (CT_Body) is located in A.1. end note]