Name

system-property() Function — Returns the value of the system property named by the argument to the function.

Synopsis

object system-property(
               string
               )

Description

By definition, all XSLT processors must support three system properties:

xsl:version

A floating-point number representing the version of XSLT implemented by this XSLT processor. As of this writing, the only official version of XSLT supported by any XSLT processors is 1.0.

xsl:vendor

A string that identifies the vendor of this XSLT processor.

xsl:vendor-url

A string containing the URL identifying the vendor of the XSLT processor. This string is typically the home page of the vendor’s web site.

Inputs

The XSLT 1.0 specification defines three properties: xsl:version, xsl:vendor, and xsl:vendor-url. These properties must be supported by all XSLT processors. Other properties may be supported by individual processors; check your processor’s documentation for more information.

Output

The value of the queried property.

Defined in

XSLT section 12.4, Miscellaneous Additional Functions.

Example

Here is a stylesheet that queries different properties of the XSLT processor:

<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:variable name="newline"> <xsl:text> </xsl:text> </xsl:variable> <xsl:template match="/"> <xsl:text>xsl:version = "</xsl:text> <xsl:value-of select="system-property('xsl:version')"/> <xsl:text>"</xsl:text><xsl:value-of select="$newline"/> ...

Get XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.