[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_DocPartBehavior (Insertion Behavior Types)

This simple type specifies the possible sets of behaviors which may be applied to the contents of a single glossary document entry (§2.12.5) when it is added to the main document story of a WordprocessingML document.

[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>

The behavior element of type ST_DocPartBehavior has a value of p, which specifies that the contents of the parent glossary document entry shall be inserted in their own paragraph when they are added to the contents of a document. end example]

This simple type's contents are a restriction of the XML Schema string datatype.

The following are possible enumeration values for this type:

Enumeration Value

Description

content (Insert Content At Specified Location)

Specifies that when the glossary document entry is inserted into the main document contents of the document, it shall be inserted normally as defined above.

 

This includes ensuring that the final paragraph which is included in the part is not inserted, and its run content is added to the paragraph into which the current part is being inserted.

p (Ensure Entry Is In New Paragraph)

Specifies that the glossary document entry shall be added into its own unique paragraph, by failing to remove the last paragraph from the entry's contents when they are added to the document.

pg (Ensure Entry Is On New Page)

Specifies that the glossary document entry shall be added into its own new page, by preceding the entry with a blank paragraph whose only content is a page break character.

 

Referenced By

behavior@val2.12.1)

The following XML Schema fragment defines the contents of this simple type:

<simpleType name="ST_DocPartBehavior">

   <restriction base="xsd:string">

   <enumeration value="content"/>

   <enumeration value="p"/>

   <enumeration value="pg"/>

   </restriction>

</simpleType>