XSLT Functions
XQuery 1.0, XPath 2.0, and XSLT 2.0 share the same function library.
XSLT Functions
XSLT contains over 100 built-in functions. These functions are used for string values, numeric values, date and time comparisons, node and QName manipulation, sequence operations, boolean values, and more.
Note: Functions are often called with the fn:
prefix, such as fn:string()
. However, since fn:
is the default namespace prefix, the function name does not need to use the prefix when called.
You can access the reference manual for all built-in XSLT 2.0 functions in our XPath tutorial.
Additionally, the following list includes built-in XSLT functions:
Name | Description |
---|---|
current() | Returns the current node. |
document() | Used to access nodes in external XML documents. |
element-available() | Checks if the XSLT processor supports the specified element. |
format-number() | Converts a number to a string. |
function-available() | Checks if the XSLT processor supports the specified function. |
generate-id() | Returns a string value that uniquely identifies the specified node. |
key() | Returns a node-set using an index specified by the <xsl:key> element. |
system-property() | Returns the value of a system property. |
unparsed-entity-uri() | Returns the URI of an unparsed entity. |