[Table of Contents] [docx version]

WordprocessingML Reference Material - Table of Contents

ST_StyleType (Style Types)

This simple type specifies the possible values for the types of style definitions defined within a WordprocessingML document. WordprocessingML supports six types of style definitions:

Paragraph styles

Character styles

Table styles

Numbering styles

Linked styles (paragraph + character)

Default paragraph + character properties

Each of the first four types corresponds to a different value below, and therefore defines the type of the current style. [Note: The last two types are unique in that they are not simply a style type: a linked style is a pairing of a character and paragraph style via the link element (§2.7.3.6); and the document default properties are defined via the docDefaults element (§2.7.4.1). end note]

[Example: Consider a style defined as follows:

<w:style w:type="paragraph" … >
<w:name w:val="My Paragraph Style"/>
<w:rPr>
<w:b/>
</w:rPr>
</w:style>

The type attribute is of type ST_StyleType, and its value of paragraph specifies that this style definition creates a paragraph style. 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

character (Character Style)

Specifies that the parent style definition is a character style.

numbering (Numbering Style)

Specifies that the parent style definition is a numbering style.

paragraph (Paragraph Style)

Specifies that the parent style definition is a paragraph style.

table (Table Style)

Specifies that the parent style definition is a table style.

 

Referenced By

style@type2.7.3.17)

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

<simpleType name="ST_StyleType">

   <restriction base="xsd:string">

   <enumeration value="paragraph"/>

   <enumeration value="character"/>

   <enumeration value="table"/>

   <enumeration value="numbering"/>

   </restriction>

</simpleType>