XSLT system-property() 函數(shù)

2018-02-12 18:12 更新

XSLT system-property() 函數(shù)

XSLT system-property() 函數(shù)返回指定名稱的系統(tǒng)屬性。


XSLT 函數(shù)參考對(duì)象 完整的 XSLT 函數(shù)參考對(duì)象

定義和用法

system-property() 函數(shù)返回通過(guò)名稱標(biāo)識(shí)的系統(tǒng)屬性的值。

在 XSLT 命名空間中的系統(tǒng)屬性:

  • xsl:version - 處理器實(shí)現(xiàn)的 XSLT 版本
  • xsl:vendor - XSLT 處理器的開(kāi)發(fā)商
  • xsl:vendor-url - 標(biāo)識(shí) XSLT 處理器的開(kāi)發(fā)商的 URL

語(yǔ)法

object system-property(string)

參數(shù)

參數(shù) 描述
string 必需。規(guī)定返回其值的系統(tǒng)屬性。

實(shí)例 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>

XSLT 函數(shù)參考對(duì)象 完整的 XSLT 函數(shù)參考對(duì)象
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)