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.

Attribute

Values

Effect

initialMode

A mode name (QName)

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

initialTemplate

A template name (QName)

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

messageEmitter

Java class that implements net.sf.saxon.event.Receiver

Destination of xsl:message output.

outputUriResolver

Java class that implements the Saxon OutputURIResolver interface

Handles documents written using xsl:result-document.

recoveryPolicy

recoverWithWarnings|recoverSilently|doNotRecover

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

schemaAware

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

Java class that implements the JAXP ErrorListener interface

Receives reports of compile-time errors in a stylesheet.

staticUriResolver

Java class that implements the JAXP URIResolver interface

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

styleParser

Java class that implements XMLReader

XML parser used for stylesheet and schema modules.

version

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

true|false

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

The xslt element may contain one or more extensionElement children defining namespaces used for extension instructions. The extensionElement element has the following attributes:

Attribute

Values

Effect

namespace

A namespace URI

The namespace URI of the extension instructions.

factory

The name of Java class that implements the Saxon interface ExtensionElementFactory

Links to the implementation of the various extension instructions in the specified namespace.