128 lines
19 KiB
Plaintext
128 lines
19 KiB
Plaintext
!Node-Set
|
|
fn:last();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the position of the last node in the context list
|
|
fn:position();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the position of the current context node
|
|
fn:count(node-set);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the number of nodes in the node-set
|
|
fn:id(object);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the element specified by it's unique id, requires DTD
|
|
fn:local-name(node-set);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the local-name for the first node in the node-set
|
|
fn:local-name();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the local-name for the context node
|
|
fn:namespace-uri(node-set);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the namespace-uri for the first node in the node-set
|
|
fn:namespace-uri();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the namespace-uri for the context node
|
|
fn:name(node-set);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the name for the first node in the node-set
|
|
fn:name();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-Node-Set-Functions;Returns the name for the context node
|
|
!String
|
|
fn:string(object);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the string representation of the object argument
|
|
fn:string();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns a string value representation of the context node
|
|
fn:concat(string, string, string*);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the concatenation of its arguments
|
|
fn:starts-with(string, string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns true if the first string starts with the second string
|
|
fn:contains(string, string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns true if the first string contains the second string
|
|
fn:substring-before(string, string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the substring found before the first occurrence of the second argument
|
|
fn:substring-after(string, string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the substring found after the first occurrence of the second argument
|
|
fn:substring(string, number, number);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the substring starting at second argument with lenght of third argument
|
|
fn:substring(string, number);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the substring of the first argument from the position specified by the second argument
|
|
fn:string-length(string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the length of the string specified by the argument
|
|
fn:string-length();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns the length of the string specified by the context node
|
|
fn:normalize-space(string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns a white-space normalized string
|
|
fn:normalize-space();1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Returns a white-space normalized string specified by the context-node
|
|
fn:translate(string, string, string);1.0;https://www.w3.org/TR/1999/REC-xpath-19991116/#section-String-Functions;Replaces characters specified by the second argument using those from the third argument
|
|
fn:string-join((string,string,...),sep);2.0;https://www.w3.org/TR/xpath-functions/#func-string-join;Returns a string created by concatenating the string arguments and using the sep argument as the separator
|
|
fn:string-to-codepoints(string);3.0;https://www.w3.org/TR/xpath-functions-31/#func-string-to-codepoints;Returns sequence of unicode codepoint representing the provided string
|
|
fn:compare(comp1,comp2);2.0;https://www.w3.org/TR/xpath-functions/#func-compare;Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1 is greater than comp2 (according to the rules of the collation that is used)
|
|
fn:compare(comp1,comp2,collation);2.0;https://www.w3.org/TR/xpath-functions/#func-compare;Returns -1 if comp1 is less than comp2, 0 if comp1 is equal to comp2, or 1 if comp1 is greater than comp2 (according to the rules of the collation that is used)
|
|
fn:codepoints-to-string((int,int,...));2.0;https://www.w3.org/TR/xpath-functions/#func-codepoints-to-string;Creates a string from a sequence of the Unicode Standard code points
|
|
fn:codepoint-equal(comp1,comp2);2.0;https://www.w3.org/TR/xpath-functions/#func-codepoint-equal;Returns true if the value of comp1 is equal to the value of comp2, according to the Unicode code point collation (http://www.w3.org/2005/02/xpath-functions/collation/codepoint), otherwise it returns false
|
|
fn:normalize-unicode();2.0;https://www.w3.org/TR/xpath-functions/#func-normalize-unicode;NONE
|
|
fn:upper-case(string);2.0;https://www.w3.org/TR/xpath-functions/#func-upper-case;Converts the string argument to upper-case
|
|
fn:lower-case(string);2.0;https://www.w3.org/TR/xpath-functions/#func-lower-case;Converts the string argument to lower-case
|
|
fn:escape-uri(stringURI,esc-res);2.0;https://www.w3.org/TR/xpath-functions/#func-escape-uri;
|
|
fn:tokenize(string,pattern);2.0;https://www.w3.org/TR/xpath-functions/#func-tokenize;
|
|
fn:matches(string,pattern);2.0;https://www.w3.org/TR/xpath-functions/#func-matches;Returns true if the string argument matches the pattern, otherwise, it returns false
|
|
fn:replace(string,pattern,replace);2.0;https://www.w3.org/TR/xpath-functions/#func-replace;Returns a string that is created by replacing the given pattern with the replace argument
|
|
fn:ends-with(string1,string2);2.0;https://www.w3.org/TR/xpath-functions/#func-ends-with;Returns true if string1 ends with string2, otherwise it returns false
|
|
!Collections
|
|
fn:avg((arg,arg,...));2.0;https://www.w3.org/TR/xpath-functions/#func-avg;Returns the average of the argument values
|
|
fn:exactly-one(item,item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-exactly-one;Returns the argument if it contains exactly one item, otherwise it raises an error
|
|
fn:zero-or-one(item,item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-zero-or-one;Returns the argument if it contains zero or one items, otherwise it raises an error
|
|
fn:index-of((item,item,...),searchitem);2.0;https://www.w3.org/TR/xpath-functions/#func-index-of;Returns the positions within the sequence of items that are equal to the searchitem argument
|
|
fn:reverse((item,item,...));2.0;https://www.w3.org/TR/xpath-functions/#func-reverse;Returns the reversed order of the items specified
|
|
fn:one-or-more(item,item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-one-or-more;Returns the argument if it contains one or more items, otherwise it raises an error
|
|
fn:distinct-values((item,item,...),collation);2.0;https://www.w3.org/TR/xpath-functions/#func-distinct-values;Returns only distinct (different) values
|
|
fn:exists(item,item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-exists;Returns true if the value of the arguments IS NOT an empty sequence, otherwise it returns false
|
|
fn:subsequence((item,item,...),start,len);2.0;https://www.w3.org/TR/xpath-functions/#func-subsequence;Returns a sequence of items from the position specified by the start argument and continuing for the number of items specified by the len argument. The first item is located at position 1
|
|
fn:empty(item,item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-empty;Returns true if the value of the arguments IS an empty sequence, otherwise it returns false
|
|
fn:insert-before((item,item,...),pos,inserts);2.0;https://www.w3.org/TR/xpath-functions/#func-insert-before;Returns a new sequence constructed from the value of the item arguments
|
|
fn:remove((item,item,...),position);2.0;https://www.w3.org/TR/xpath-functions/#func-remove;Returns a new sequence constructed from the value of the item arguments
|
|
fn:unordered((item,item,...));2.0;https://www.w3.org/TR/xpath-functions/#func-unordered;Returns the items in an implementation dependent order
|
|
fn:data(item.item,...);2.0;https://www.w3.org/TR/xpath-functions/#func-data;Takes a sequence of items and returns a sequence of atomic values
|
|
fn:collection();2.0;https://www.w3.org/TR/xpath-functions/#func-collection;NONE
|
|
fn:collection(string);2.0;https://www.w3.org/TR/xpath-functions/#func-collection;NONE
|
|
fn:min((arg,arg,...));2.0;https://www.w3.org/TR/xpath-functions/#func-min;Returns the argument that is less than the others
|
|
fn:max((arg,arg,...));2.0;https://www.w3.org/TR/xpath-functions/#func-max;Returns the argument that is greater than the others
|
|
fn:deep-equal(param1,param2,collation);2.0;https://www.w3.org/TR/xpath-functions/#func-deep-equal;Returns true if param1 and param2 are deep-equal to each other, otherwise it returns false
|
|
!Date / Time
|
|
fn:adjust-date-to-timezone(date,timezone);2.0;https://www.w3.org/TR/xpath-functions/#func-adjust-date-to-timezone;If the timezone argument is empty, it returns a date without a timezone. Otherwise, it returns a date with a timezone
|
|
fn:adjust-time-to-timezone(time,timezone);2.0;https://www.w3.org/TR/xpath-functions/#func-adjust-time-to-timezone;If the timezone argument is empty, it returns a time without a timezone. Otherwise, it returns a time with a timezone
|
|
fn:implicit-timezone();2.0;https://www.w3.org/TR/xpath-functions/#func-implicit-timezone;Returns the value of the implicit timezone
|
|
fn:dateTime(date,time);2.0;https://www.w3.org/TR/xpath-functions/#func-dateTime;Converts the arguments to a date and a time
|
|
fn:current-time();2.0;https://www.w3.org/TR/xpath-functions/#func-current-time;Returns the current time (with timezone)
|
|
fn:timezone-from-time(time);2.0;https://www.w3.org/TR/xpath-functions/#func-timezone-from-time;Returns the time zone component of the argument if any
|
|
fn:hours-from-time(time);2.0;https://www.w3.org/TR/xpath-functions/#func-hours-from-time;Returns an integer that represents the hours component in the localized value of the argument
|
|
fn:minutes-from-time(time);2.0;https://www.w3.org/TR/xpath-functions/#func-minutes-from-time;Returns an integer that represents the minutes component in the localized value of the argument
|
|
fn:seconds-from-time(time);2.0;https://www.w3.org/TR/xpath-functions/#func-seconds-from-time;Returns an integer that represents the seconds component in the localized value of the argument
|
|
fn:years-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-years-from-duration;Returns an integer that represents the years component in the canonical lexical representation of the value of the argument
|
|
fn:months-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-years-from-duration;Returns an integer that represents the months component in the canonical lexical representation of the value of the argument
|
|
fn:days-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-days-from-duration;Returns an integer that represents the days component in the canonical lexical representation of the value of the argument
|
|
fn:hours-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-hours-from-duration;Returns an integer that represents the hours component in the canonical lexical representation of the value of the argument
|
|
fn:minutes-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-minutes-from-duration;Returns an integer that represents the minutes component in the canonical lexical representation of the value of the argument
|
|
fn:seconds-from-duration(datetimedur);2.0;https://www.w3.org/TR/xpath-functions/#func-seconds-from-duration;Returns a decimal that represents the seconds component in the canonical lexical representation of the value of the argument
|
|
fn:current-date();2.0;https://www.w3.org/TR/xpath-functions/#func-current-date;Returns the current date (with timezone)
|
|
fn:timezone-from-date(date);2.0;https://www.w3.org/TR/xpath-functions/#func-timezone-from-date;Returns the time zone component of the argument if any
|
|
fn:year-from-date(date);2.0;https://www.w3.org/TR/xpath-functions/#func-year-from-date;Returns an integer that represents the year in the localized value of the argument
|
|
fn:month-from-date(date);2.0;https://www.w3.org/TR/xpath-functions/#func-month-from-date;Returns an integer that represents the month in the localized value of the argument
|
|
fn:day-from-date(date);2.0;https://www.w3.org/TR/xpath-functions/#func-day-from-date;Returns an integer that represents the day in the localized value of the argument
|
|
fn:current-dateTime();2.0;https://www.w3.org/TR/xpath-functions/#func-current-dateTime;Returns the current dateTime (with timezone)
|
|
fn:timezone-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-timezone-from-dateTime;Returns the time zone component of the argument if any
|
|
fn:year-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-year-from-dateTime;Returns an integer that represents the year component in the localized value of the argument
|
|
fn:month-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-month-from-dateTime;Returns an integer that represents the month component in the localized value of the argument
|
|
fn:day-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-day-from-dateTime;Returns an integer that represents the day component in the localized value of the argument
|
|
fn:hours-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-hours-from-dateTime;Returns an integer that represents the hours component in the localized value of the argument
|
|
fn:minutes-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-minutes-from-dateTime;Returns an integer that represents the minutes component in the localized value of the argument
|
|
fn:seconds-from-dateTime(datetime);2.0;https://www.w3.org/TR/xpath-functions/#func-seconds-from-dateTime;Returns a decimal that represents the seconds component in the localized value of the argument
|
|
fn:adjust-dateTime-to-timezone(datetime,timezone);2.0;https://www.w3.org/TR/xpath-functions/#func-adjust-dateTime-to-timezone;If the timezone argument is empty, it returns a dateTime without a timezone. Otherwise, it returns a dateTime with a timezone
|
|
!Error
|
|
fn:error();2.0;https://www.w3.org/TR/xpath-functions/#func-error;
|
|
fn:error(error);2.0;https://www.w3.org/TR/xpath-functions/#func-error;
|
|
fn:error(error,description);2.0;https://www.w3.org/TR/xpath-functions/#func-error;
|
|
fn:error(error,description,error-object);2.0;https://www.w3.org/TR/xpath-functions/#func-error;
|
|
fn:trace(value,label);2.0;https://www.w3.org/TR/xpath-functions/#func-trace;Used to debug queries
|
|
!Misc
|
|
fn:nilled(node);2.0;https://www.w3.org/TR/xpath-functions/#func-nilled;Returns a Boolean value indicating whether the argument node is nilled
|
|
fn:namespace-uri-from-QName();2.0;https://www.w3.org/TR/xpath-functions/#func-namespace-uri-from-QName;NONE
|
|
fn:base-uri();2.0;https://www.w3.org/TR/xpath-functions/#func-base-uri;Returns the value of the base-uri property of the current or specified node
|
|
fn:base-uri(node);2.0;https://www.w3.org/TR/xpath-functions/#func-base-uri;Returns the value of the base-uri property of the current or specified node
|
|
fn:static-base-uri();2.0;https://www.w3.org/TR/xpath-functions/#func-static-base-uri;Returns the value of the base-uri
|
|
fn:doc-available(URI);2.0;https://www.w3.org/TR/xpath-functions/#func-doc-available;Returns true if the doc() function returns a document node, otherwise it returns false
|
|
fn:resolve-QName();2.0;https://www.w3.org/TR/xpath-functions/#func-resolve-QName;NONE
|
|
fn:node-name(node);2.0;https://www.w3.org/TR/xpath-functions/#func-node-name;Returns the node-name of the argument node
|
|
fn:default-collation();2.0;https://www.w3.org/TR/xpath-functions/#func-default-collation;Returns the value of the default collation
|
|
fn:idref((string,string,...),node);2.0;https://www.w3.org/TR/xpath-functions/#func-idref;Returns a sequence of element or attribute nodes that have an IDREF value equal to the value of one or more of the values specified in the string argument
|
|
fn:document-uri(node);2.0;https://www.w3.org/TR/xpath-functions/#func-document-uri;Returns the value of the document-uri property for the specified node
|
|
fn:local-name-from-QName();2.0;https://www.w3.org/TR/xpath-functions/#func-local-name-from-QName;NONE
|
|
fn:in-scope-prefixes();2.0;https://www.w3.org/TR/xpath-functions/#func-in-scope-prefixes;NONE
|
|
fn:namespace-uri-for-prefix();2.0;https://www.w3.org/TR/xpath-functions/#func-namespace-uri-for-prefix;NONE
|
|
fn:QName();2.0;https://www.w3.org/TR/xpath-functions/#func-QName;NONE
|
|
fn:root() fn:root(node);2.0;https://www.w3.org/TR/xpath-functions/#func-root;Returns the root of the tree to which the current node or the specified belongs. This will usually be a document node
|
|
fn:doc(URI);2.0;https://www.w3.org/TR/xpath-functions/#func-doc;NONE
|
|
fn:resolve-uri(relative,base);2.0;https://www.w3.org/TR/xpath-functions/#func-resolve-uri;NONE
|
|
fn:available-environment-variables();3.0;https://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables;Returns a list of environment variable names
|
|
fn:doc-available(uri);3.0;https://www.w3.org/TR/xpath-functions-30/#func-doc-available;The function returns true the function call fn:doc(uri) would return a document node
|
|
fn:element-with-id();3.0;https://www.w3.org/TR/xpath-functions-31/#func-element-with-id;
|
|
fn:encode-for-uri(uri-part);3.0;https://www.w3.org/TR/xpath-functions-30/#func-encode-for-uri;Encodes reserved characters in a string that is intended to be used in the path segment of a URI.
|
|
fn:environment-variable(name);3.0;https://www.w3.org/TR/xpath-functions-30/#func-environment-variable;Returns the value of a system environment variable, if it exists
|
|
fn:escape-html-uri(uri);3.0;https://www.w3.org/TR/xpath-functions-30/#func-escape-html-uri;Escapes a URI in the same way that HTML user agents handle attribute values expected to contain URIs
|
|
fn:iri-to-uri(iri);3.0;https://www.w3.org/TR/xpath-functions-30/#func-iri-to-uri;Converts a string containing an IRI into a URI
|
|
!Loop / Conditional;3.0
|
|
fn:for-each(sequence*, function);3.0;https://www.w3.org/TR/xpath-functions-30/#func-for-each;Applies function item to every element in sequence
|
|
fn:for-each-pair(sequence*, sequence*, function);3.0;https://www.w3.org/TR/xpath-functions-30/#func-for-each-pair;Applies the function to consecutive pairs of elements taken from sequences
|
|
fn:fold-left(sequence*, baseValue, function);3.0;https://www.w3.org/TR/xpath-functions-30/#func-fold-left;Applies function item to every element in sequence, accumulating value
|
|
fn:fold-right();3.0;https://www.w3.org/TR/xpath-functions-30/#func-fold-right;Applies function item to every element in sequence, accumulating value
|
|
fn:filter(sequence*, function);3.0;https://www.w3.org/TR/xpath-functions-30/#func-filter;Returns those items from the sequence for which the supplied function returns true |