XSLT system-property() Function
Definition and Usage
The system-property() function returns the value of the system property identified by name.
System properties in the XSLT namespace:
System Property | Description |
---|---|
xsl:version |
The numeric version of the XSLT provided by the processor implemented; The number is 1 if the XSLT processor implements the XSLT version specified in this document. |
xsl:vendor | Developer of the XSLT processor. |
xsl:vendor-url | Identifies the URL of the developer of the XSLT processor. |
msxsl:version | The numeric version of the Microsoft XML Core Services (MSXML) provided. |
Syntax
object system-property(string)
Parameter
Parameter | Description |
---|---|
string | Must be specified. Defines the system property that returns its value. |
Examples
<?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>