当前位置: 首页 > 网络学院 > XML相关教程 > XSL/XSLT > XSLT system-属性() 函数
The system-property() function returns the value of the system property specified by the name.
system-property() 函数的作用是:返回通过name[名称]指定的系统属性值。
System properties in the XSLT namespace:
XSLT命名空间中的系统属性值如下:
object system-property(string) |
| 参数 | 描述 |
|---|---|
| string | Required. Specifies the system property to return the value of 必要参数。指定系统返回值的字符串 |
<?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> |
评论 (0) All