[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

docPartBody (Contents of Glossary Document Entry)

This element specifies the contents of the parent glossary document entry (§2.12.5). These contents shall consist of one or more block-level elements, analogous to the body element (§2.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 (§2.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:behavior>

</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 behaviors2.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]

Parent Elements

docPart2.12.5)

 

Child Elements

Subclause

altChunk (Anchor for Imported External Content)

§2.17.3.1

bookmarkEnd (Bookmark End)

§2.13.6.1

bookmarkStart (Bookmark Start)

§2.13.6.2

commentRangeEnd (Comment Anchor Range End)

§2.13.4.3

commentRangeStart (Comment Anchor Range Start)

§2.13.4.4

customXml (Block-Level Custom XML Element)

§2.5.1.6

customXmlDelRangeEnd (Custom XML Markup Deletion End)

§2.13.5.4

customXmlDelRangeStart (Custom XML Markup Deletion Start)

§2.13.5.5

customXmlInsRangeEnd (Custom XML Markup Insertion End)

§2.13.5.6

customXmlInsRangeStart (Custom XML Markup Insertion Start)

§2.13.5.7

customXmlMoveFromRangeEnd (Custom XML Markup Move Source End)

§2.13.5.8

customXmlMoveFromRangeStart (Custom XML Markup Move Source Start)

§2.13.5.9

customXmlMoveToRangeEnd (Custom XML Markup Move Destination Location End)

§2.13.5.10

customXmlMoveToRangeStart (Custom XML Markup Move Destination Location Start)

§2.13.5.11

del (Deleted Run Content)

§2.13.5.12

ins (Inserted Run Content)

§2.13.5.20

moveFrom (Move Source Run Content)

§2.13.5.21

moveFromRangeEnd (Move Source Location Container - End)

§2.13.5.23

moveFromRangeStart (Move Source Location Container - Start)

§2.13.5.24

moveTo (Move Destination Run Content)

§2.13.5.26

moveToRangeEnd (Move Destination Location Container - End)

§2.13.5.27

moveToRangeStart (Move Destination Location Container - Start)

§2.13.5.28

oMath (Office Math)

§7.1.2.77

oMathPara (Math Paragraph)

§7.1.2.78

p (Paragraph)

§2.3.1.22

permEnd (Range Permission End)

§2.13.7.1

permStart (Range Permission Start)

§2.13.7.2

proofErr (Proofing Error Anchor)

§2.13.8.1

sdt (Block-Level Structured Document Tag)

§2.5.2.30

sectPr (Document Final Section Properties)

§2.6.18

tbl (Table)

§2.4.36

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_Body">

   <sequence>

   <group ref="EG_BlockLevelElts" minOccurs="0" maxOccurs="unbounded"/>

   <element name="sectPr" minOccurs="0" maxOccurs="1" type="CT_SectPr"/>

   </sequence>

</complexType>