常用工具: 简繁转换 HTML/JS互转 Url编码Escape解析 Unicode编码转换 设为首页 加入收藏夹
更多内容
" id="arctext" class="center" " class="arcinfo center" " id="slistl" class="left" " id="mid_slistl_sch" class="left" " id="mid_slistl_adv" class="left" " id="mid_slistl_adv2" " src="http://www.fzs8.net/d/js/acmsd/middle2.js"
文章正文

ASP Hex 函数

来源:  网络收集  字体:[ ]
站内搜索系统
文章正文

XSLT 函数-available() 函数

来源:  网络  2007-07-03 00:00:00 字体:[ ]

Definition and Usage
定义和用法

The function-available() function returns a Boolean value that indicates whether the function specified is supported by the XSLT processor.
function-available()函数的作用是:返回了一个逻辑值。用于指定XSLT处理器是否允许支持指定的函数。

You may test the XSLT functions and the inherited XPath functions.
你可以对XSLT函数和被继承的XPath函数进行测试。


Syntax
语法

boolean function-available(string)

Parameters
参数

参数 描述
string Required. Specifies the function to test
必要参数。指定需要进行测试的函数。

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><xsl:choose><xsl:when test="function-available('sum')"><p>sum() is supported.</p></xsl:when><xsl:otherwise><p>sum() is not supported.</p></xsl:otherwise></xsl:choose><xsl:choose><xsl:when test="function-available('current')"><p>current() is supported.</p></xsl:when><xsl:otherwise><p>current() is not supported.</p></xsl:otherwise></xsl:choose></body></html></xsl:template>
</xsl:stylesheet>

查看XSL 文件以及结果。


  
上一篇:XSLT 元素-available() 函数
下一篇:XSLT generate-id() 函数
最新文章
推荐文章
热门文章
版权所有:IT加油站   COPYRIGHT © 2007 WWW.FZS8.NET ALL RIGHTS RESERVED.
闽ICP备08008535号