diff --git a/Frontend/tools/xpath.html b/Frontend/tools/xpath.html index 9179a2f..b5451d3 100644 --- a/Frontend/tools/xpath.html +++ b/Frontend/tools/xpath.html @@ -342,6 +342,112 @@ + + +
+ + + +
+ + + [1.0] fn: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
  • +
+ + Arguments and return type: + + + + + + + + + +
TypeDescription
objectThe object to convert to a boolean
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
boolean("Release11")true
boolean("")false

+ W3C Documentation reference: Boolean-Functions +
+
+ + + + [1.0] fn:not() +
+
+ The not function returns true if its argument is false, and false otherwise.
+
+ W3C Documentation reference: Boolean-Functions +
+
+ + + [1.0] fn:true() +
+
+ The true function returns true.
+
+ W3C Documentation reference: Boolean-Functions +
+
+ + + [1.0] fn:false() +
+
+ The true function returns false.
+
+ W3C Documentation reference: Boolean-Functions +
+
+ + [1.0] fn: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. The language of the context node is determined by the value of the xml:lang attribute on the context node, or, if the context node has no xml:lang attribute, by the value of the xml:lang attribute on the nearest ancestor of the context node that has an xml:lang attribute. If there is no such attribute, then lang returns false. If there is such an attribute, then lang returns true if the attribute value is equal to the argument ignoring case, or if there is some suffix starting with - such that the attribute value is equal to the argument ignoring that suffix of the attribute value and ignoring case.
+ Arguments and return type: + + + + + + + + + +
TypeDescription
stringLanguage that will be looked for in context node
Examples: Look W3C documentation
+
+ W3C Documentation reference: Boolean-Functions +
+
+ +
@@ -373,7 +479,7 @@ Result - string((1<0))< /td> + string((1<0)) false @@ -1254,6 +1360,195 @@ +
+ +
+ + + +
+ + + [1.0] fn: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
  • +
+ + Arguments and return type: + + + + + + + + + +
TypeDescription
objectThe object to convert to a number
+ Examples:
+ + + + + + + + + + + + + +
ExpressionResult
boolean("Release11")true
boolean("")false

+ W3C Documentation reference: Numeric-Functions +
+
+ + + + [1.0] fn: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.
+
+ Arguments and return type: + + + + + + + + + +
TypeDescription
node-setSet of nodes whose values will be summed.
+ Examples:
+ + + + + + + + + +
ExpressionResult
sum(/l:library/l:readerList/p:person/p:readerID)12444

+ W3C Documentation reference: Numeric-Functions +
+
+ + + [1.0] fn: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.
+
+ Arguments and return type: + + + + + + + + + +
TypeDescription
numberNumber to convert
+ Examples:
+ + + + + + + + + +
ExpressionResult
floor(2.55)2
+ W3C Documentation reference: Numeric-Functions +
+
+ + + [1.0] fn: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.
+
+ Arguments and return type: + + + + + + + + + +
TypeDescription
numberNumber to convert
+ Examples:
+ + + + + + + + + +
ExpressionResult
ceiling(2.55)3
+ W3C Documentation reference: Numeric-Functions +
+
+ + [1.0] fn:round(number) +
+
+ The round function returns the number that is closest to the argument and that is an integer. If there are two such numbers, then the one that is closest to positive infinity is returned. If the argument is NaN, then NaN is returned. If the argument is positive infinity, then positive infinity is returned. If the argument is negative infinity, then negative infinity is returned. If the argument is positive zero, then positive zero is returned. If the argument is negative zero, then negative zero is returned. If the argument is less than zero, but greater than or equal to -0.5, then negative zero is returned.
+ + NOTE: For these last two cases, the result of calling the round function is not the same as the result of adding 0.5 and then calling the floor function.
+ Arguments and return type: + + + + + + + + + +
TypeDescription
numberNumber to convert
+ Examples:
+ + + + + + + + + + + + + +
ExpressionResult
round(2.55)3
round(2.35)2

+ W3C Documentation reference: Numeric-Functions +
+
+ +