XSLT - Function Reference Manual
- Previous Page XSLT Elements
- Next Page XSLT Tutorial
XQuery 1.0, XPath 2.0, and XSLT 2.0 share the same function library.
XSLT Functions
XSLT contains more than 100 built-in functions. These functions are used for string values, numeric values, date and time comparisons, node and QName operations, sequence operations, logical values, and so on.
The URI of the namespace for XSLT functions is:
http://www.w3.org/2005/02/xpath-functions
The default prefix for the function namespace is fn.
Tip: Functions are often called with the prefix fn:, such as fn:string(). However, since fn: is the default namespace prefix, the prefix does not need to be used when calling the function name.
You can access all built-in XSLT 2.0 function references in our XPath tutorial.
In addition, the following built-in XSLT functions are listed here:
Name | Description |
---|---|
current() | Return a node set containing the current node as its only member. |
document() | Used to access nodes in an external XML document. |
element-available() | Check if the XSLT processor supports the specified element. |
format-number() | Convert a number to a string. |
function-available() | Check if the XSLT processor supports the specified function. |
generate-id() | Returns a unique string value that identifies the specified node. |
key() | Retrieves the element marked with the <xsl:key> statement previously used. |
node-set | Converts a tree to a node set. The resulting node set always contains a single node and is the root node of the tree. |
system-property() | Return the value of the system property. |
unparsed-entity-uri() | Return the URI of the unparsed entity. |
- Previous Page XSLT Elements
- Next Page XSLT Tutorial