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>