XPath Functions Quick Reference

Table 72 lists the functions you can call in a query and provides short descriptions.

Function
Source
Returns
XPath
               

            
Boolean value that is the result of converting an object to a Boolean value. See Converting an Object to Boolean.
XPath
               

            
Number that is the smallest integer that is not less than a number you specify. See Obtaining the Largest, Smallest, or Closest Number.
XPath
               

            
XPath
               

            
String that concatenates two or more strings you specify. See Concatenating Strings.
XPath
               

            
Nodes that contain the specified string. See Searching for Strings.
XPath
               

            
Number of nodes in the node-set argument. See Determining the Number of Nodes in a Collection.
XPath
               

            
Node for which the current template started its operation. See Obtaining the Current Node for the Current XSLT Template.
XSLT
               

            
Root node of the specified document. See Accessing Other Documents During Query Execution.
XSLT
               

            
Boolean value that indicates whether the specified element is supported by the XSLT processor. See Determining If Functions Are Available.
XPath
               

            
XPath
               

            
Number that is the largest integer that is not greater than a number you specify. See Obtaining the Largest, Smallest, or Closest Number.
XSLT
               

            
Boolean value that indicates whether the specified function is supported by the XPath processor. See Determining If Functions Are Available.
XSLT
               

            
String that uniquely, temporarily, identifies a node. See Generating Temporary IDs for Nodes.
XPath
               

            
Element whose id attribute value matches the specified value. See Finding an Element with a Particular ID.
XSLT
               

            
Node whose key value matches the specified key. See Finding an Element with a Particular Key.
XPath
               

            
Boolean value that indicates whether the language of the node is the language you expect. See Determining the Context Node Language.
XPath
               

            
Number of nodes in the context list. See Determining the Number of Nodes in a Collection.
XPath
               

            
Local portion of the node name, excluding the prefix. See Obtaining Namespace Information.
XPath
               

            
String that contains the tag name of the node, including namespace information, if any. See Obtaining Namespace Information.
XPath
               

            
URI for the namespace of the node. See Obtaining Namespace Information.
XPath
               

            
XPath
               

            
String without leading or trailing white space. See Normalizing Strings.
XPath
               

            
Boolean value that indicates the opposite of the specified Boolean value. See Obtaining Boolean Values.
XPath
               

            
Number that is the result of converting the specified argument to a number. See Converting an Object to a Number.
XPath
               

            
Position number of the node relative to the context node set. See Finding a Particular Node.
XPath
               

            
Processing instruction nodes. If you specify a literal argument, this function returns a processing instruction if its name matches the literal you specify. See Obtaining Particular Types of Nodes By Using Node Tests.
XPath
               

            
Number that is the closest to the argument and is an integer. See Obtaining the Largest, Smallest, or Closest Number.
XPath
               

            
Boolean value that indicates if a string starts with a particular string. See Finding Strings That Start with a Particular String.
XPath
               

            
String that is the result of converting some object to a string. See Converting Objects to Strings.
XPath
               

            
Number of characters in a string you specify. See Determining the Number of Characters in a String.
XPath
               

            
Substring that is in a particular position within its string. See Finding Substrings by Position.
XPath
               

            
Substring that appears before a string you specify. See Finding Substrings That Appear Before Strings You Specify.
XPath
               

            
Substring that appears after a string you specify. See Finding Substrings That Appear After Strings You Specify.
XPath
               

            
Number that is the sum of the values of the nodes in the specified set. See Obtaining the Sum of the Values in a Node Set.
XSLT
               

            
Object that represents the specified property. See Obtaining System Properties.
XPath
               

            
String with some characters replaced by other characters. See Replacing Characters in Strings with Characters You Specify.
XPath
               

            
XSLT
               

            
URI of an unparsed entity with the specified name. See Obtaining the URI for an Unparsed Entity.
Table 72. XPath Function Quick Reference

 
Free Stylus Studio XML Training:
W3C Member