diff --git a/Frontend/tools/xpath.html b/Frontend/tools/xpath.html index ce5321a..08d65f6 100644 --- a/Frontend/tools/xpath.html +++ b/Frontend/tools/xpath.html @@ -151,33 +151,33 @@ fn:count()
- Returns the number of nodes in the node-set
- Arguments: - - - - - - - - - -
TypeDescription
node-setNode-set to count nodes in
Examples:
- - - - - - - - - - - - - -
ExpressionResult
count(//b:book)5
count(//person[@id>5])17

- W3C Documentation reference: Node-Set-Functions + Returns the number of nodes in the node-set
+ Arguments: + + + + + + + + + +
TypeDescription
node-setNode-set to count nodes in
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
count(//b:book)5
count(//person[@id>5])17

+ W3C Documentation reference: Node-Set-Functions
@@ -195,97 +195,97 @@ fn:local-name()
- Returns the local-name for the first node in the node-set
- Arguments: - - - - - - - - - -
TypeDescription
node-setExtract first node and return its local name
Examples:
- - - - - - - - - - - - - -
ExpressionResult
local-name(//b:books)b:book
local-name(//b:book)b:title

- W3C Documentation reference: Node-Set-Functions + Returns the local-name for the first node in the node-set
+ Arguments: + + + + + + + + + +
TypeDescription
node-setExtract first node and return its local name
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
local-name(//b:books)b:book
local-name(//b:book)b:title

+ W3C Documentation reference: Node-Set-Functions
fn:namespace-uri()
- Returns the namespace-uri for the first node in the node-set
- Arguments: - - - - - - - - - -
TypeDescription
node-setExtract first node and return the namespace URI
Examples:
- - - - - - - - - -
ExpressionResult
namespace-uri(//b:book)http://www.book.com

- W3C Documentation reference: Node-Set-Functions + Returns the namespace-uri for the first node in the node-set
+ Arguments: + + + + + + + + + +
TypeDescription
node-setExtract first node and return the namespace URI
Examples:
+ + + + + + + + + +
ExpressionResult
namespace-uri(//b:book)http://www.book.com

+ W3C Documentation reference: Node-Set-Functions
fn:name()
- Returns the name for the first node in the node-set
- Arguments: - - - - - - - - - -
TypeDescription
node-set (Optional)Extract first node and return QName
Examples:
- - - - - - - - - - - - - -
ExpressionResult
name(//b:books/*)b:book
name(//b:book/*)b:title

- W3C Documentation reference: Node-Set-Functions + Returns the name for the first node in the node-set
+ Arguments: + + + + + + + + + +
TypeDescription
node-set (Optional)Extract first node and return QName
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
name(//b:books/*)b:book
name(//b:book/*)b:title

+ W3C Documentation reference: Node-Set-Functions
- +
@@ -337,55 +337,46 @@ fn:not()
- The not function returns true if its argument is false, and false otherwise.
-
- W3C Documentation reference: Boolean-Functions + The not function returns true if its argument is false, and false otherwise.
+
+ W3C Documentation reference: Boolean-Functions
fn:true()
- The true function returns true.
-
- W3C Documentation reference: Boolean-Functions + The true function returns true.
+
+ W3C Documentation reference: Boolean-Functions
fn:false()
- The true function returns false.
-
- W3C Documentation reference: Boolean-Functions + The true function returns false.
+
+ W3C Documentation reference: Boolean-Functions
fn: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. 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: - - - - - - - - - -
TypeDescription
stringLanguage that will be looked for in context node
Examples: Look W3C documentation
+ 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: + + + + + + + + + +
TypeDescription
stringLanguage that will be looked for in context node
Examples: Look W3C documentation

- W3C Documentation reference: Boolean-Functions + W3C Documentation reference: Boolean-Functions
@@ -935,208 +926,191 @@
- - + + fn:number()
- 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: - - - - - - - - - -
TypeDescription
objectThe object to convert to a number
Examples:
- - - - - - - - - - - - - -
ExpressionResult
number(10)10
number("")NaN

- W3C Documentation reference + 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: + + + + + + + + + +
TypeDescription
objectThe object to convert to a number
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
number(10)10
number("")NaN

+ W3C Documentation reference
- + fn:sum()
- 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: - - - - - - - - - -
TypeDescription
node-setNode set to sum
Examples:
- - - - - - - - - -
ExpressionResult
sum(/l:library/l:readerList/p:person/p:readerID)12444

- W3C Documentation reference + 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: + + + + + + + + + +
TypeDescription
node-setNode set to sum
Examples:
+ + + + + + + + + +
ExpressionResult
sum(/l:library/l:readerList/p:person/p:readerID)12444

+ W3C Documentation reference
- + fn:floor()
- The floor function returns the largest (closest to positive infinity) number that is not - greater than the argument and that is an integer.
- - Arguments: - - - - - - - - - -
TypeDescription
node-setNode set to sum
Examples:
- - - - - - - - - - - - - - - - - -
ExpressionResult
floor(3.1)4
floor(3.9)4
floor(3.5)4

- W3C Documentation reference + The floor function returns the largest (closest to positive infinity) number that is not greater than the argument and that is an integer.
+ + Arguments: + + + + + + + + + +
TypeDescription
node-setNode set to sum
Examples:
+ + + + + + + + + + + + + + + + + +
ExpressionResult
floor(3.1)4
floor(3.9)4
floor(3.5)4

+ W3C Documentation reference
- + fn:ceiling()
- The ceiling function returns the smallest (closest to negative infinity) number that is - not less than the argument and that is an integer.
- - Arguments: - - - - - - - - - -
TypeDescription
node-setNode set to sum
Examples:
- - - - - - - - - - - - - - - - - -
ExpressionResult
floor(3.1)3
floor(3.9)3
floor(3.5)3

- W3C Documentation reference + The ceiling function returns the smallest (closest to negative infinity) number that is not less than the argument and that is an integer.
+ + Arguments: + + + + + + + + + +
TypeDescription
node-setNode set to sum
Examples:
+ + + + + + + + + + + + + + + + + +
ExpressionResult
floor(3.1)3
floor(3.9)3
floor(3.5)3

+ W3C Documentation reference
- - + + fn:round()
- 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: - - - - - - - - - -
TypeDescription
node-setNode set to sum
Examples:
- - - - - - - - - - - - - - - - - -
ExpressionResult
floor(3.1)3
floor(3.9)4
floor(3.5)3

- W3C Documentation reference + 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: + + + + + + + + + +
TypeDescription
node-setNode set to sum
Examples:
+ + + + + + + + + + + + + + + + + +
ExpressionResult
floor(3.1)3
floor(3.9)4
floor(3.5)3

+ W3C Documentation reference
- +