11.4 Document Template

11.4 Document Template

Source Relationship:

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

A document template can be represented by an instance of a WordprocessingML package, and contains styles, numbering definitions, and so on that are made available when documents based on that template are edited. A WordprocessingML document can refer to another document as its document template, by having a Document

Settings part (11.3.3) that contains an explicit relationship to the file location of the necessary document template using the id attribute on the attachedTemplate element.

[Example: Consider a document specifying a document template located at c:\template.docx:

<Relationships xmlns="…">
  <Relationship Id="rId1"
    Type="http://…/attachedTemplate" Target="file:///c:\template.docx"
    TargetMode="External"/>
</Relationships>

The document’s Document Settings part contains an attachedTemplate element that explicitly references this relationship:

<w:settings  >
  <w:attachedTemplate r:id="rId1"/>
</w:settings>

end example]

Last updated on