XSLT system-property() 函式
❮ XSLT 函式參考定義和用法
system-property() 函式返回由名稱指定的系統屬性的值。
XSLT 名稱空間中的系統屬性
- xsl:version - 處理器實現的 XSLT 版本
- xsl:vendor - XSLT 處理器的供應商
- xsl:vendor-url - 標識 XSLT 處理器供應商的 URL
語法
object system-property(string)
引數
引數 | 描述 |
---|---|
string | Required. 指定要返回其值的系統屬性 |
示例 1
<?xml version="1.0" encoding="UTF-8"?>
<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>
❮ XSLT 函式參考