XSLT system-property() 関数

定義と用法

system-property() 関数は、名前で識別されるシステムプロパティの値を返します。

XSLT ネームスペースのシステムプロパティ:

システムプロパティ 説明
xsl:version

プロセッサが実装する XSLT 版本の数字を提供します;

XSLT プロセッサが本文書で指定された XSLT 版本を実装している場合、この数字は 1 です。

xsl:vendor XSLT プロセッサの開発者
xsl:vendor-url XSLT プロセッサの開発者の URL を識別します。
msxsl:version Microsoft XML コアサービス (MSXML) 版本の数字を提供します。

構文

object system-property(string)

パラメータ

パラメータ 説明
string 必要です。値を返すシステムプロパティを指定します。

<?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>

XSL ファイルを確認結果を確認