17.18.15 ST_DocPartBehavior

This simple type specifies the possible sets of behaviors which can be applied to the contents of a single glossary document entry (17.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:behaviors>
  </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 must 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 W3C XML Schema string datatype.

This simple type is restricted to the values

listed in the following table:

Enumeration Value

Description

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.

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.

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.

[Note: The W3C XML Schema definition of this simple type’s content model (ST_DocPartBehavior) is located in A.1. end note]

Last updated on