XSLT functions
XQuery 1.0, XPath 2.0 and XSLT 2.0 share the same library.
XSLT functions
XSLT contains over 100 built-in functions. These functions for string values, numeric, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values, and so on.
The default function namespace prefix is fn.
Function namespace URI is: http://www.w3.org/2005/xpath-functions
Tip: function to be called from time to time with the fn: prefix, such as fn: string ().However, since fn: it is the default namespace prefix, then when it is called, does not have to use the prefix name of the function.
You can access all the built-in XSLT 2.0 Functions reference manual in our XPath tutorial.
In addition, the following list of built-in XSLT function:
名称 | 描述 |
---|---|
current() | 返回当前节点。 |
document() | 用于访问外部 XML 文档中的节点。 |
element-available() | 检测 XSLT 处理器是否支持指定的元素。 |
format-number() | 把数字转换为字符串。 |
function-available() | 检测 XSLT 处理器是否支持指定的函数。 |
generate-id() | 返回唯一标识指定节点的字符串值。 |
key() | 通过使用由 <xsl:key> 元素规定的索引号返回节点集。 |
system-property() | 返回系统属性的值。 |
unparsed-entity-uri() | 返回未解析实体的 URI。 |