XSLT system-property() 函數(shù)
定義和用法
system-property() 函數(shù)返回通過名稱標(biāo)識的系統(tǒng)屬性的值。
在 XSLT 命名空間中的系統(tǒng)屬性:
系統(tǒng)屬性 | 說明 |
---|---|
xsl:version |
提供處理器所實現(xiàn)的 XSLT 版本的數(shù)字; 如果 XSLT 處理器實現(xiàn)本文檔所指定的 XSLT 版本,該數(shù)字為 1。 |
xsl:vendor | XSLT 處理器的開發(fā)商。 |
xsl:vendor-url | 標(biāo)識XSLT 處理器的開發(fā)商的 URL。 |
msxsl:version | 提供 Microsoft XML 核心服務(wù) (MSXML) 版本的數(shù)字。 |
語法
object system-property(string)
參數(shù)
參數(shù) | 描述 |
---|---|
string | 必需。規(guī)定返回其值的系統(tǒng)屬性。 |
例子
<?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>