XSLT » Functions » system-property

Syntax:
number = system-property('xsl:version')
name = system-property('xsl:vendor')
URL = system-property('xsl:vendor-url')
xsl:vendor-url
The xsl:vendor-url argument returns the URL address of the vendor company. For example, for Microsoft the return should be: http://www.microsoft.com
xsl:vendor
The xsl:vendor argument returns the name of the company that created the XSLT processor in use. For example, if you are using MSXML 3.0 the return should be: Microsoft
xsl:version
The xsl:version argument returns the W3C XSLT version number. Currently only version one has been released. Therefore, the return should be: 1

The system-property function is used to return information about the XSLT processor environment. Specifically, an object is returned that contains the XSLT version number, the name of the vendor (company) of the XSLT processor, and the URL of the vendor's Web site.

This function should not used to test whether specific features are supported.
 
The W3C standard requires that the following three arguments be supported. Various vendors of XSLT processors may have additional proprietary arguments that provide other environmental information of importance to their particular product. (For example, for the Microsoft XSLT processor, the argument msxsl:version returns the Microsoft XML parser version number.)

Examples

Code:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
Version number: <xsl:value-of select="system-property('xsl:version')" />
<br />
Vendor: <xsl:value-of select="system-property('xsl:vendor')" />
<br />
Vendor URL: <xsl:value-of select="system-property('xsl:vendor-url')" />
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Output:
Version number: 1
Vendor: Microsoft
Vendor URL: http://www.microsoft.com
Language(s): XSLT

See Also: