DocumentID: ECMA-376/Part1/11.4 Title: ECMA-376, Part1: 11.4 Document Template Extracted-From: ECMA-376 Office Open XML File Formats, 1st Edition / December 2006 Warning: Coverted to HTML format by a script known to have bugs
|
Source Relationship: |
http://schemas.openxmlformats.org/officeDocument/2006/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]