<useXSLTWhenSaving> (Save Document as XML File through Custom XSL Transform)

This element specifies that this document should be saved through the custom XSLT transform defined by the <saveThroughXslt> element (§2.15.1.76) in this document when it is saved as a single XML file (not defined by this Office Open XML Standard). [: Because this setting specifies behavior when saving to an alternative file format not defined by this Office Open XML Standard, this behavior is optional. ]

If the <saveXmlDataOnly> element (§2.15.1.77) is specified, then the single XML file to be transformed is the custom XML markup of the document, otherwise, it a format outside the scope of this Office Open XML Standard. If the XSL transform specified by the <saveThroughXslt> element is not present, then this setting should be ignored.

If this element is omitted, then this document should not be saved through a custom XSL transform when it is saved as a single XML file.

example:
<w:useXSLTWhenSaving w:val="true" />

The <useXSLTWhenSaving> element's @val attribute has a value of true specifying that the content in this document should be saved as a single XML file through the custom XSLT specified by the <saveThroughXslt> element. ]

Parent Elements

<settings>2.15.1.78)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>