Package com.japisoft.xpath.function.basic

Class Summary
Boolean function converts its argument to a boolean as follows: a number is true if and only if it is neither positive or negative zero nor NaN a node-set is true if and only if it is non-empty a string is true if and only if its length is non-zero an object of a type other than the four basic types is converted to a boolean in a way that is dependent on that type
Ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer
Concat function returns the concatenation of its arguments
Contains function returns true if the first argument string contains the second argument string, and otherwise returns false
Count function returns the number of nodes in the argument node-set
False function returns false
Floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer
FunctionLib Library of XPath function.
Id function selects elements by their unique ID (see [5.2.1 Unique IDs]).
Lang The lang function returns true or false depending on whether the language of the context node as specified by xml:lang attributes is the same as or is a sublanguage of the language specified by the argument string.
Last Return a number equal to the context size from the expression evaluation context.
LocalName function returns the local part of the expanded-name of the node in the argument node-set that is first in document order.
Name function returns a string containing a QName representing the expanded-name of the node in the argument node-set that is first in document order.
NamespaceURI Function returns the namespace URI of the expanded-name of the node in the argument node-set that is first in document order.
NormalizeSpace function returns the argument string with whitespace normalized by stripping leading and trailing whitespace and replacing sequences of whitespace characters by a single space.
Not function returns true if its argument is false, and false otherwise
Number function converts its argument to a number as follows: a string that consists of optional whitespace followed by an optional minus sign followed by a Number followed by whitespace is converted to the IEEE 754 number that is nearest (according to the IEEE 754 round-to-nearest rule) to the mathematical value represented by the string; any other string is converted to NaN boolean true is converted to 1; boolean false is converted to 0 a node-set is first converted to a string as if by a call to the string function and then converted in the same way as a string argument an object of a type other than the four basic types is converted to a number in a way that is dependent on that type
Position Function returns a number equal to the context position from the expression evaluation context
Round function returns the number that is closest to the argument and that is an integer.
StartsWith function returns true if the first argument string starts with the second argument string, and otherwise returns false
String function converts an object to a string
StringLength returns the number of characters in the string (see [3.6 Strings]).
SubString function returns the substring of the first argument starting at the position specified in the second argument with length specified in the third argument.
SubStringAfter The substring-after function returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string.
SubStringBefore function returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string, or the empty string if the first argument string does not contain the second argument string.
Sum function returns the sum, for each node in the argument node-set, of the result of converting the string-values of the node to a number
Translate returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.
True function returns true