XSLTシステム-property()関数
❮XSLT関数リファレンス定義と使用法
system-property()関数は、名前で指定されたシステムプロパティの値を返します。
XSLT名前空間のシステムプロパティ:
- xsl:version-プロセッサによって実装されたXSLTのバージョン
- xsl:vendor-XSLTプロセッサのベンダー
- xsl:vendor-url-XSLTプロセッサのベンダーを識別するURL
構文
object system-property(string)
パラメーター
Parameter | Description |
---|---|
string | Required. Specifies the system property to return the value of |
例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>
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>
❮XSLT関数リファレンス