XSLT system-property() Function

Definition and Usage

The system-property() function returns the value of the system property identified by the name.

System properties in the XSLT namespace:

System Properties Description
xsl:version

Provides the numeric version of the XSLT version implemented by the processor;

If the XSLT processor implements the XSLT version specified in this document, this number is 1.

xsl:vendor Developer of the XSLT processor.
xsl:vendor-url Identifies the URL of the developer of the XSLT processor.
msxsl:version Provides the numeric version of the Microsoft XML Core Services (MSXML) version.

Syntax

object system-property(string)

Parameter

Parameter Description
string Required. Specifies the system property that returns its value.

Example

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<p>
Version:
<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')" />
</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

View XSL File,View Results.