The <xslt> element

The xslt element of the configuration file contains properties specific to XSLT. Remember that these are defaults; they can always be overridden for specific queries or transformations. An attribute whose value is set to a zero-length string is ignored: the effect is the same as omitting the attribute.

The xslt element may have the following children, associated with extensions and optimization:

The attribute properties of the xslt element are described in the following table:

Attribute

Applies to

Values

Effect

enableAssertions

PE EE

true|false

Indicates whether assertions (XSLT 3.0 xsl:assert instructions) are enabled.

initialMode

HE PE EE

A mode name (QName in Clark notation {uri}local)

The name of a mode within a stylesheet in which execution should begin.

initialTemplate

HE PE EE

A template name (QName in Clark notation {uri}local)

The name of a named template within a stylesheet where execution should begin.

messageEmitter

HE PE EE

Name of a class implementing Receiver

Destination of xsl:message output.

outputUriResolver

HE PE EE

Name of a class implementing OutputURIResolver

Handles documents written using xsl:result-document.

recoveryPolicy

HE PE EE

recoverWithWarnings|recoverSilently| doNotRecover

Indicates how XSLT recoverable errors are handled (for example, ambiguous template rules).

schemaAware

EE

true|false

Indicates whether stylesheet should be compiled to be able to handle schema-typed input, even if they contain no xsl:import-schema declaration.

staticErrorListener

HE PE EE

Name of a class implementing the JAXP ErrorListener interface

Receives reports of compile-time errors in a stylesheet.

staticUriResolver

HE PE EE

Name of a class implementing the JAXP URIResolver interface

User-defined class for dereferencing URIs on xsl:include or xsl:import.

styleParser

HE PE EE

Name of a class implementing the org.xml.sax.XMLReader interface

XML parser used for stylesheets and schema documents.

version

EE

0.0, 2.0, or 3.0

XSLT language version to be supported by the processor. The value 0.0 indicates that the version is taken from the xsl:stylesheet element.

versionWarning

HE PE EE

true|false

False suppresses the warning produced when the XSLT processor version is not the same as the version in the xsl:stylesheet element.