Fork me on GitHub

Using an alternative XSLT processor

An alternative XSLT processor is important, if you want to use XSLT 2.0 stylesheets or if you would like to work around a bug in your JRE's stylesheet processor. As of this writing, Saxon is the only XSLT 2.0 compliant processor, so we take this as an example.

Changing the XSLT processor is as simple as specifying it as a dependency:


If you would like to know, which XSLT processor and/or version you are actually using, add code like the following to your stylesheet:

    XSLT Version = <xsl:copy-of select="system-property('xsl:version')"/>
    XSLT Vendor = <xsl:copy-of select="system-property('xsl:vendor')"/>
    XSLT Vendor URL = <xsl:copy-of select="system-property('xsl:vendor-url')"/>