XSLT system-property() 函数

2018-02-12 18:12 更新

XSLT system-property() 函数

XSLT system-property() 函数返回指定名称的系统属性。


XSLT 函数参考对象 完整的 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>

XSLT 函数参考对象 完整的 XSLT 函数参考对象
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号