中国最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2

xslt教程

XSLT 教程

XSLT 高级

XSLT 参考手册

  • XSLT 实例
  • XSLT system-property() 函数

    阅读 (2287)

    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>

    查看 XSL 文件查看结果


    XSLT 函数参考对象 完整的 XSLT 函数参考对象
    关闭
    程序员人生