11.3.12 Style Definitions Part

11.3.12 Style Definitions Part

Content Type:

application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml

Root Namespace:

http://purl.oclc.org/ooxml/wordprocessingml/main

Source Relationship:

http://purl.oclc.org/ooxml/officeDocument/relationships/styles

An instance of this part type contains the definition for a set of styles used by this document.

A package shall contain at most two Style Definitions parts. One instance of that part shall be the target of an implicit relationship from the Main Document (11.3.10) part, and the other shall be the target of an implicit relationship in from the Glossary Document (11.3.8) part.

[Example:

<Relationships xmlns="…">
  <Relationship Id="rId3"
    Type="http://…/styles" Target="styles.xml"/>
</Relationships>

end example]

The root element for a Styles Definition part shall be styles, which is a container for one or more style elements.

[Example: Here is the style ListBullet (which is used in a Main Document Part in 11.3.10):

<w:styles xmlns:w="…"  xml:space="preserve">
  <w:style w:type="paragraph" w:styleId="ListBullet">
    <w:name w:val="List Bullet"/>
    <w:basedOn w:val="Text"/>
    <w:autoRedefine/>
    <w:rsid w:val="00081289"/>
    <w:pPr>
      <w:pStyle w:val="ListBullet"/>
      <w:numPr>
        <w:numId w:val="1"/>
      </w:numPr>
      <w:tabs>
        <w:tab w:val="clear" w:pos="360"/>
      </w:tabs>
      <w:ind w:start="648"/>
    </w:pPr>
  </w:style>
</w:styles>

end example]

A Style Definitions part shall be located within the package containing the relationships part (expressed syntactically, the TargetMode attribute of the Relationship element shall be Internal).

A Style Definitions part shall not have implicit or explicit relationships to any part defined by ISO/IEC 29500.

Last updated on