XPath defines the grammer of location paths and a set of functions:
Returns the ordinal value of the last element in the current context
Returns the ordinal value of the current element in the current context
Returns the number of nodes in the specified node set
Returns the set of elements with the specified ID value
Returns the local name (the name without any namespace qualifiers) of the specified node (or the first node in document order)
Returns the namespace URI of the specified node (or the first node in document order)
Returns the fully qualified name of the specified node (or the first node in document order)
Returns the string representation of the object
Returns the concatenation of its arguments
Returns true if string1 starts with the characters in string2
Returns true if string1 contains string2
Returns the substring of string1 that occurs before the first occurance of string2, or the empty string if not(contains(string1, string2))
Returns the substring of string1 that occurs after the first occurance of string2, or the empty string if not(contains(string1, string2))
Returns the substring of string starting at position startpos of length length, or the rest of the string if length is not specified
Returns the length of the specified string
Returns the specified string with leading and trailing whitespace removed and internal sequences of multiple whitespace characters replaced by a single space
Returns string1 with the characters in string2 replaced by the characaters in string3
Returns the boolean representation of the object
Returns the negation of boolean
Returns true
Returns false (i.e., not(true())
Returns true if the language of the current context node (as specified by xml:lang) matches the specified language string
Returns the numeric representation of the object
Returns the sum of the numeric representations of the nodes in the node-set
Returns the largest integer not greater than number
Returns the smallest integer not less than number
Returns the integer value closest to number