当前位置: 首页 > 网络学院 > XML相关教程 > XSL/XSLT > XSLT system-属性() 函数

XSL/XSLT
XSL 语言
XSLT 介绍
XSLT 浏览器
XSLT 转换
<xsl:template>
<xsl:value-of>
<xsl:for-each>
<xsl:sort>
<xsl:if>
<xsl:choose>
<xsl:apply-templates>
XSLT - 客户端
XSLT - 服务器端
XSLT - 编辑XML
XSLT 摘要
XSLT 元素参考
XSLT 函数
XSL 编辑器

XSL/XSLT 中的 XSLT system-属性() 函数


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 183 ::
收藏到网摘: n/a

Definition and Usage
定义和用法

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命名空间中的系统属性值如下:

  • xsl:version - The version of XSLT implemented by the processor
    xsl:version - 处理器所执行的XSLT版本
  • xsl:vendor - The vendor of the XSLT processor
    xsl:vendor - XSLT处理器的宿主
  • xsl:vendor-url - The URL identifying the vendor of the XSLT processor
    xsl:vendor-url - 用于鉴别XSLT处理器宿主的URL

Syntax
语法

object system-property(string)

Parameters
参数

参数 描述
string Required. Specifies the system property to return the value of
必要参数。指定系统返回值的字符串

Example 1
案例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>
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 文件以及结果

评论 (0) All

登陆 | 还没注册?