Using XSLT Functions in XPath Expressions
The XPath specification defines many functions. XSLT style sheets have several additional functions available to them. These include:
| Function |
Description |
| document(obj, ns?) |
Allows processing of more than one source document |
| key(str, obj) |
Retrieves a key assigned by the <xsl:key> element |
| format-number(num, str, str?) |
Formats a numeric value in any of a variety of ways |
| current() |
Locates the current node in a node-set |
| unparsed-entity-uri(str) |
Returns the URI of a specified unparsed entity |
| generate-id(ns?) |
Assigns a unique identifier to the first node in a given node-set |
| system-property(str) |
Returns the value of a specified system property, such as the name or version of the XSLT processor |
For more information about these functions, including examples, see the following topics in the XSLT Reference: