XSLT system-property()関数
完全な XSLT 関数リファレンスオブジェクト
定義と使い方
system-property() 関数は、名前によって識別されるシステムプロパティの値を返します。
XSLT 名前空間内のシステムプロパティ:
- xsl:version - プロセッサが実装する XSLT のバージョン
- xsl:vendor - XSLT プロセッサの開発元
- xsl:vendor-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 関数リファレンスオブジェクト その他の拡張