11.9 XSL Transformation

11.9 XSL Transformation

Source Relationship:

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

A document can store information about an XSL Transformation which might be applied when the document is output as a single file (e.g. as XML or HTML).That information is stored in a Document Settings part (11.3.3) whose part relationship item contains an explicit relationship to the file location of the XSL Transformation using this relationship. [Note: A full description of how this relationship is used (in conjunction with the saveThroughXslt element) is provided in 17.15.1.76. end note]

[Example: Consider a document specifying an XSL Transformation located at http://www.openxmlformats.org/test.xsl:

<Relationships xmlns="…">
  <Relationship Id="rId8" Type="http://…/transform"
    Target="http://www.openxmlformats.org/test.xsl"
    TargetMode="External"/>
</Relationships>

The document’s Document Settings part contains a saveThroughXslt element that explicitly references this relationship:

<w:settings >
  <w:saveThroughXslt r:id="rId8" />
</w:settings>

end example]

An XSL transformation shall be located external to the package containing the relationships part (expressed syntactically, the TargetMode attribute of the Relationship element shall be External).

Last updated on