diff --git a/Frontend/tools/xpath.html b/Frontend/tools/xpath.html index 7f82f5d..1f25721 100644 --- a/Frontend/tools/xpath.html +++ b/Frontend/tools/xpath.html @@ -135,46 +135,54 @@ fn:position()
- Returns the position of the current context node
+ Returns the position of the current context node.

W3C Documentation reference: Node-Set-Functions
- - + + fn:last() +
+ The last function returns a number equal to the context size from the expression evaluation context.
+
+ W3C Documentation reference: Node-Set-Functions +
+ + 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
- - - + + + fn:id()
@@ -182,125 +190,103 @@
W3C Documentation reference: Node-Set-Functions
- - - + + + 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:local-name() -
- Returns the local-name for the context node
-
- 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:namespace-uri() -
- Returns the namespace-uri for the context node
-
- 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
- +
@@ -308,104 +294,93 @@
- - + + fn:boolean()
- 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: - - - - - - - - - -
TypeDescription
objectThe object to convert to a boolean
Examples:
- - - - - - - - - - - - - -
ExpressionResult
boolean("Release11")true
boolean("")false

- W3C Documentation reference: Boolean-Functions + 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: + + + + + + + + + +
TypeDescription
objectThe object to convert to a boolean
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
boolean("Release11")true
boolean("")false

+ W3C Documentation reference: Boolean-Functions
- + 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
- - + +
@@ -413,14 +388,71 @@
- + fn:string()
- The string function converts an object to a string as follows: A node-set is converted - to a string by returning the string-value of the node in the node-set that is first in - document order. If the node-set is empty, an empty string is returned.
- + The string function converts an object to a string as follows: A node-set is converted to a string by returning the string-value of the node in the node-set that is first in document order. If the node-set is empty, an empty string is returned.
+ + Arguments: + + + + + + + + + +
TypeDescription
objectThe object to convert to a string
Examples:
+ + + + + + + + + +
ExpressionResult
string(10)true

+ W3C Documentation reference: String-Functions +
+ + + fn:concat() +
+ The concat function returns the concatenation of its arguments.
+ + Arguments: + + + + + + + + + +
TypeDescription
string*Strings to concatenate
Examples:
+ + + + + + + + + +
ExpressionResult
concat("Release", 11)Release11

+ W3C Documentation reference: String-Functions +
+ + fn:starts-with() +
+ Returns true if the first argument string starts with the second argument string, and otherwise returns false.
+ Arguments: @@ -428,8 +460,12 @@ - - + + + + + +
Description
objectThe object to convert to a stringstringString to test
stringString that first string has to start from
Examples:
@@ -438,48 +474,18 @@ - +
Result
string(10)starts-with("Release11", "Rel") true

W3C Documentation reference: String-Functions
- - + fn:concat() + class="hyperlink collapsible collapsibleMini collapseTrigger">fn:contains()
- The concat function returns the concatenation of its arguments.
- - Arguments: - - - - - - - - - -
TypeDescription
string*Strings to concatenate
Examples:
- - - - - - - - - -
ExpressionResult
concat("Release", 11)Release11

- W3C Documentation reference: String-Functions -
- - fn:starts-with() -
- The concat function returns the concatenation of its arguments.
- + The contains function returns true if the first argument string contains the second argument string, and otherwise returns false.
+ Arguments: @@ -488,11 +494,11 @@ - + - +
stringString to test
stringThe object to convert to a stringString that first string has to contain
Examples:
@@ -501,14 +507,227 @@ - - + +
Result
concat("Release", 11)Release11contains("Release11", "eas")true

W3C Documentation reference: String-Functions
- - + + fn:substring-before() +
+ 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.
+ + Arguments: + + + + + + + + + + + + + +
TypeDescription
stringString to test
stringString that first string has to contain
Examples:
+ + + + + + + + + +
ExpressionResult
substring-before("1999/04/01","/")1999

+ W3C Documentation reference: String-Functions +
+ + + fn:substring-after() +
+ 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.
+ + Arguments: + + + + + + + + + + + + + +
TypeDescription
stringString to test
stringString that first string has to contain
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
substring-after("1999/04/01","/")04/01
substring-after("1999/04/01","19")99/04/01

+ W3C Documentation reference: String-Functions +
+ + + fn:substring() +
+ 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.
+ + Arguments: + + + + + + + + + + + + + + + + + +
TypeDescription
stringString to test
numberStarting index
number?Length of target substring
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
substring("12345",2)2345
substring("12345",2,3)234

+ W3C Documentation reference: String-Functions +
+ + fn:string-length() +
+ The string-length returns the number of characters in the string. If the argument is omitted, it defaults to the context node converted to a string, in other words the string-value of the context node.
+ + Arguments: + + + + + + + + + +
TypeDescription
string?String to test
Examples:
+ + + + + + + + + +
ExpressionResult
string-length("abcdef")6

+ W3C Documentation reference: String-Functions +
+ + fn:normalize-space() +
+ 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. Whitespace characters are the same as those allowed by the S production in XML. If the argument is omitted, it defaults to the context node converted to a string, in other words the string-value of the context node.
+ + Arguments: + + + + + + + + + +
TypeDescription
string?String to test
Examples:
+ + + + + + + + + +
ExpressionResult
normalize-space(" abc def ")abc def

+ W3C Documentation reference: String-Functions +
+ + + fn:translate() +
+ 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. If there is a character in the second argument string with no character at a corresponding position in the third argument string (because the second argument string is longer than the third argument string), then occurrences of that character in the first argument string are removed.
+ + Arguments: + + + + + + + + + + + + + + + + + +
TypeDescription
stringString to translate
stringCharacters to remove
stringString to insert characters from second argument
Examples:
+ + + + + + + + + + + + + +
ExpressionResult
translate("bar","abc","ABC")BAr
translate("--aaa--","abc-","ABC")AAA

+ W3C Documentation reference: String-Functions +
+ +
@@ -516,208 +735,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
- +