XSLT system-property()Function


XSLT 函数参考对象Complete XSLT Function Reference

Definition and Usage

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

System properties in the XSLT namespace:

  • xsl:version - The XSLT version implemented by the processor
  • xsl:vendor - The vendor of the XSLT processor
  • xsl:vendor-url - The URL that identifies the vendor of the XSLT processor

Syntax

object system-property(string)

Parameters

Parameter Description
string Required. Specifies the system property whose value is to be returned.

Example 1

<?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 result。


XSLT 函数参考对象Complete XSLT Function Reference Other Extensions