Latest web development tutorials

XSLT system-property () function

XSLT Function Reference objects Complete XSLT Function Reference objects

Definition and Usage

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

In the XSLT namespace System Properties:

  • xsl: version - version of XSLT processors
  • xsl: vendor - XSLT processor developers
  • xsl: vendor-url - identifies XSLT processor developer URL

grammar

object system-property(string)

parameter

参数 描述
string 必需。规定返回其值的系统属性。

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>
版本:
<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>

See XSL file , view the results .


XSLT Function Reference objects Complete XSLT Function Reference objects