The XML Path Language (XPath) syntax supports functions to provide information about nodes in a collection. These functions return strings or numbers and can be used with comparison operators in filter patterns. These functions are not available from the selectNodes method in the Document Object Model (DOM).
| current | Returns a node set that has the current node as its only member. |
| document | Provides a way to retrieve other XML resources from within the XSLT style sheet beyond the initial data provided by the input stream. |
| element-available | Returns True if and only if the expanded-name is the name of an instruction. |
| format-number | Converts the first argument to a string using the format pattern string specified by the second argument. |
| function-available | Returns True if the function is available in the function library. |
| generate-id | Returns a string that uniquely identifies the node in the node-set argument that is first in document order. |
| key | Retrieves elements previously marked with an <xsl:key> statement. |
| node-set | Converts a tree into a node set. The resulting node always contains a single node and the root node of the tree. |
| system-property | Returns an object representing the value of the system property identified by the name. |
| unparsed-entity-uri | Returns declarations of unparsed entities in the document type definition (DTD) of the source document. |
The following are node tests, not functions:
text()processing-instruction()comment()node()For more information, see Node Tests.