XSLT Functions

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). These functions require the XSLT feature to be installed in the platform.

The following table shows the XSLT functions implemented by XPath and XSLT.

Function Description
current Returns a node set that has the current node as its only member.
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.
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.

See Also

XSLT Reference | XML Stylesheet Language Transformations (XSLT) | XPath Functions

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.