BooleanFunction |
4.3 boolean boolean(object)
The 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
|
CeilingFunction | 4.4 number ceiling(number)
The ceiling function returns the smallest
(closest to negative infinity) number that is not less
than the argument and that is an integer....If the argument
is NaN, then NaN is returned. |
ConcatFunction | 4.2 string concat(string,string,string*)
Concatenates its arguments and returns the resulting string. |
ContainsFunction | 4.2 boolean contains(string,string)
The contains function returns true if the first argument
string contains the second argument string, and otherwise returns false. |
CountFunction | 4.1 number count(node-set)
The count function returns the number of nodes in the argument node-set. |
FalseFunction | 4.3 boolean false()
Returns false. |
FloorFunction | 4.4 number floor(number)
The floor function returns the largest (closest to positive infinity)
number that is not greater than the argument and that is an integer.... |
IdFunction | 4.1 node-set id(object)
The id function returns a List
of all the elements in the context document that have an ID
matching one of a specified list of IDs. |
LangFunction |
4.3 boolean lang(string)
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. |
LastFunction | 4.1 number last()
The last function returns a number equal to
the context size from the expression evaluation context. |
LocalNameFunction | 4.1 string local-name(node-set?)
The local-name function returns the local part of the
expanded-name of the node in the argument node-set that is first in document order. |
NameFunction | 4.1 string name(node-set?)
The 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. |
NamespaceUriFunction |
4.1
string namespace-uri(node-set?)
The namespace-uri
function returns the namespace URI of the expanded-name of the node in the
argument node-set that is first in document order. |
NormalizeSpaceFunction |
4.2 string normalize-space(string)
The normalize-space function
returns the argument string with whitespace normalized by stripping
leading and trailing whitespace and replacing sequences of whitespace
characters by a single space. |
NotFunction | 4.3 boolean not(boolean)
The not function returns true if its argument is false, and false otherwise. |
NumberFunction |
4.4 number number(object)
The 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
If the argument is omitted, it defaults to a node-set with the
context node as its only member. |
PositionFunction | 4.1 number position()
The position function returns a number equal to the context position from the expression evaluation context. |
RoundFunction | 4.4 number round(number)
The round function returns the number that is closest to the argument and that is an integer. |
StartsWithFunction | 4.2 boolean starts-with(string,string)
The starts-with function returns true if the first argument string starts
with the second argument string, and otherwise returns false. |
StringFunction |
4.2 string string(object)
The string function converts
an object to a string as follows:
|
StringLengthFunction | 4.2 number string-length(string)
The string-length function returns the number of Unicode characters
in its argument. |
SubstringAfterFunction | 4.2 string substring-after(string,string)
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. |
SubstringBeforeFunction | 4.2 string substring-before(string,string)
The substring-before 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. |
SubstringFunction |
4.2
string substring(string,number,number?)
The 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. |
SumFunction | 4.4 number sum(node-set)
The 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. |
TranslateFunction |
4.2
string translate(string,string,string)
The translate function
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. |
TrueFunction | 4.3 boolean true()
Returns true. |