[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

documentType (Document Classification)

This element specifies the classification of a given WordprocessingML document as a letter, email, or general document.

[Note: This element may be used by hosting applications to facilitate customized user interface and/or automatic formatting behaviors based on the 'type' of a given WordprocessingML document. end note]

If this element is omitted, then the document shall be classified as a general document.

[Example: Consider a set of WordprocessingML documents which should be classified as 'letters'. This classification would be specified using the following WordprocessingML in the document settings of these documents:

<w:documentType w:val="letter" />

The documentType element's val attribute is equal to letter, specifying that the hosting application shall apply the behaviors it has specified for letters to the given WordprocessingML document. end example]

Parent Elements

settings2.15.1.78)

 

Attributes

Description

val (Document Classification Value)

Specifies the classification of the document based on the types defined in the referenced simple type definition.

 

[Example: Consider a WordprocessingML document which should be classified as an e-mail message. This classification would be specified using the following WordprocessingML in the document settings:

 

<w:documentType w:val="eMail" />

 

The val attribute is equal to eMail, specifying that the hosting application may apply e-mail behaviors (if any) to this document. end example]

 

The possible values for this attribute are defined by the ST_DocType simple type2.18.23).

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

<complexType name="CT_DocType">

   <attribute name="val" type="ST_DocType" use="required"/>

</complexType>