XSLTシステム・プロパティ()関数
定義と使用法
システム・プロパティ()関数は、値のシステムによって識別されるプロパティの名前を返します。
XSLT名前空間システムのプロパティ:
- xsl:バージョン - XSLTプロセッサのバージョン
- xsl:ベンダー - XSLTプロセッサの開発
- XSL:ベンダー-urlは - XSLTプロセッサの開発者のURLを識別する
文法
object system-property(string)
パラメータ
参数 | 描述 |
---|---|
string | 必需。规定返回其值的系统属性。 |
例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>
<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関数リファレンスオブジェクト