Reconnaissance

Version 1.1 by Nicolas Gregoire on 2012/01/10 14:47

XSLT standards define several properties about the XSLT engine itself. Querying for these properties allows to easily identify the engine.

XSLT 1.0

The function system-property() supports by default the following properties :

  • xsl:version : a number giving the version of XSLT implemented by the processor
  • xsl:vendor : a string identifying the vendor of the XSLT processor
  • xsl:vendor-url : a URL identifying the vendor of the XSLT processor (typically its Web site)

XSLT 2.0

This version supports some additional properties :

  • xsl:product-name : a string containing the name of the implementation, as defined by the implementer
  • xsl:product-version : a string identifying the version of the implementation, as defined by the implementer
  • xsl:is-schema-aware : returns the string "yes" in the case of a schema-aware XSLT processor, or "no" otherwise
  • xsl:supports-serialization : returns the string "yes" in the case of a processor that offers the serialization feature, or "no" otherwise
  • xsl:supports-backwards-compatibility : returns the string "yes" in the case of a processor that offers the backwards compatibility feature, or "no" otherwise