Name | Desc |
fn:abs(num) | Returns the absolute value of the argument |
fn:adjust-dateTime-to-timezone(datetime,timezone) | If the timezone argument is empty, it returns a dateTime without a timezone. Otherwise, it returns a dateTime with a timezone |
fn:adjust-date-to-timezone(date,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) | If the timezone argument is empty, it returns a time without a timezone. Otherwise, it returns a time with a timezone |
fn:avg((arg,arg,...)) | Returns the average of the argument values |
fn:base-uri() | Returns the value of the base-uri property of the current or specified node |
fn:boolean(arg) | Returns a boolean value for a number, string, or node-set |
fn:ceiling(num) | Returns the smallest integer that is greater than the number argument |
fn:codepoint-equal(comp1,comp2) | 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:codepoints-to-string(int,int,...) | Returns a string from a sequence of code points |
fn:compare(comp1,comp2) | 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:concat(string,string,...) | Returns the concatenation of the strings |
fn:contains(string1,string2) | Returns true if string1 contains string2, otherwise it returns false |
fn:count((item,item,...)) | Returns the count of nodes |
fn:current-date() | Returns the current date (with timezone) |
fn:current-dateTime() | Returns the current dateTime (with timezone) |
fn:current-time() | Returns the current time (with timezone) |
fn:data(item.item,...) | Takes a sequence of items and returns a sequence of atomic values |
fn:dateTime(date,time) | Converts the arguments to a date and a time |
fn:day-from-date(date) | Returns an integer that represents the day in the localized value of the argument |
fn:day-from-dateTime(datetime) | Returns an integer that represents the day component in the localized value of the argument |
fn:days-from-duration(datetimedur) | Returns an integer that represents the days component in the canonical lexical representation of the value of the argument |
fn:deep-equal(param1,param2,collation) | Returns true if param1 and param2 are deep-equal to each other, otherwise it returns false |
fn:default-collation() | Returns the value of the default collation |
fn:distinct-values((item,item,...),collation) | Returns only distinct (different) values |
fn:doc-available(URI) | Returns true if the doc() function returns a document node, otherwise it returns false |
fn:document-uri(node) | Returns the value of the document-uri property for the specified node |
fn:empty(item,item,...) | Returns true if the value of the arguments IS an empty sequence, otherwise it returns false |
fn:ends-with(string1,string2) | Returns true if string1 ends with string2, otherwise it returns false |
fn:error() | Example: error(fn:QName('http://example.com/test', 'err:toohigh'), 'Error: Price is too high') |
fn:error(error,description) | Result: Returns http://example.com/test#toohigh and the string "Error: Price is too high" to the external processing environment |
fn:escape-uri(stringURI,esc-res) | Example: escape-uri("http://example.com/test#car", true()) |
fn:exactly-one(item,item,...) | Returns the argument if it contains exactly one item, otherwise it raises an error |
fn:exists(item,item,...) | Returns true if the value of the arguments IS NOT an empty sequence, otherwise it returns false |
fn:false() | Returns the boolean value false |
fn:floor(num) | Returns the largest integer that is not greater than the number argument |
fn:hours-from-dateTime(datetime) | Returns an integer that represents the hours component in the localized value of the argument |
fn:hours-from-duration(datetimedur) | Returns an integer that represents the hours component in the canonical lexical representation of the value of the argument |
fn:hours-from-time(time) | Returns an integer that represents the hours component in the localized value of the argument |
fn:id((string,string,...),node) | Returns a sequence of element nodes that have an ID value equal to the value of one or more of the values specified in the string argument |
fn:idref((string,string,...),node) | 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:implicit-timezone() | Returns the value of the implicit timezone |
fn:index-of((item,item,...),searchitem) | Returns the positions within the sequence of items that are equal to the searchitem argument |
fn:-before((item,item,...),pos,s) | Returns a new sequence constructed from the value of the item arguments - with the value of the s argument ed in the position specified by the pos argument |
fn:lang(lang) | Returns true if the language of the current node matches the language of the specified language |
fn:last() | Returns the number of items in the processed node list |
fn:local-name() | Returns the name of the current node or the first node in the specified node set - without the namespace prefix |
fn:lower-case(string) | Converts the string argument to lower-case |
fn:matches(string,pattern) | Returns true if the string argument matches the pattern, otherwise, it returns false |
fn:max((arg,arg,...)) | Returns the argument that is greater than the others |
fn:min((arg,arg,...)) | Returns the argument that is less than the others |
fn:minutes-from-dateTime(datetime) | Returns an integer that represents the minutes component in the localized value of the argument |
fn:minutes-from-duration(datetimedur) | Returns an integer that represents the minutes component in the canonical lexical representation of the value of the argument |
fn:minutes-from-time(time) | Returns an integer that represents the minutes component in the localized value of the argument |
fn:month-from-date(date) | Returns an integer that represents the month in the localized value of the argument |
fn:month-from-dateTime(datetime) | Returns an integer that represents the month component in the localized value of the argument |
fn:months-from-duration(datetimedur) | Returns an integer that represents the months component in the canonical lexical representation of the value of the argument |
fn:name() | Returns the name of the current node or the first node in the specified node set |
fn:namespace-uri() | Returns the namespace URI of the current node or the first node in the specified node set |
fn:nilled(node) | Returns a Boolean value indicating whether the argument node is nilled |
fn:node-name(node) | Returns the node-name of the argument node |
fn:normalize-space(string) | Removes leading and trailing spaces from the specified string, and replaces all internal sequences of white space with one and returns the result. If there is no string argument it does the same on the current node |
fn:not(arg) | The argument is first reduced to a boolean value by applying the boolean() function. Returns true if the boolean value is false, and false if the boolean value is true |
fn:number(arg) | Returns the numeric value of the argument. The argument could be a boolean, string, or node-set |
fn:one-or-more(item,item,...) | Returns the argument if it contains one or more items, otherwise it raises an error |
fn:position() | Returns the index position of the node that is currently being processed |
fn:remove((item,item,...),position) | Returns a new sequence constructed from the value of the item arguments - with the item specified by the position argument removed |
fn:replace(string,pattern,replace) | Returns a string that is created by replacing the given pattern with the replace argument |
fn:reverse((item,item,...)) | Returns the reversed order of the items specified |
fn:root() | Returns the root of the tree to which the current node or the specified belongs. This will usually be a document node |
fn:round(num) | Rounds the number argument to the nearest integer |
fn:round-half-to-even() | Example: round-half-to-even(0.5) |
fn:seconds-from-dateTime(datetime) | Returns a decimal that represents the seconds component in the localized value of the argument |
fn:seconds-from-duration(datetimedur) | Returns a decimal that represents the seconds component in the canonical lexical representation of the value of the argument |
fn:seconds-from-time(time) | Returns an integer that represents the seconds component in the localized value of the argument |
fn:starts-with(string1,string2) | Returns true if string1 starts with string2, otherwise it returns false |
fn:static-base-uri() | Returns the value of the base-uri |
fn:string(arg) | Returns the string value of the argument. The argument could be a number, boolean, or node-set |
fn:string-join((string,string,...),sep) | Returns a string created by concatenating the string arguments and using the sep argument as the separator |
fn:string-length(string) | Returns the length of the specified string. If there is no string argument it returns the length of the string value of the current node |
fn:string-to-codepoints(string) | Returns a sequence of code points from a string |
fn:subsequence((item,item,...),start,len) | 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:substring(string,start,len) | Returns the substring from the start position to the specified length. Index of the first character is 1. If length is omitted it returns the substring from the start position to the end |
fn:substring-after(string1,string2) | Returns the remainder of string1 after string2 occurs in it |
fn:substring-before(string1,string2) | Returns the start of string1 before string2 occurs in it |
fn:sum(arg,arg,...) | Returns the sum of the numeric value of each node in the specified node-set |
fn:timezone-from-date(date) | Returns the time zone component of the argument if any |
fn:timezone-from-dateTime(datetime) | Returns the time zone component of the argument if any |
fn:timezone-from-time(time) | Returns the time zone component of the argument if any |
fn:tokenize(string,pattern) | Example: tokenize("XPath is fun", "\s+") |
fn:trace(value,label) | Used to debug queries |
fn:translate(string1,string2,string3) | Converts string1 by replacing the characters in string2 with the characters in string3 |
fn:true() | Returns the boolean value true |
fn:unordered((item,item,...)) | Returns the items in an implementation dependent order |
fn:upper-case(string) | Converts the string argument to upper-case |
fn:year-from-date(date) | Returns an integer that represents the year in the localized value of the argument |
fn:year-from-dateTime(datetime) | Returns an integer that represents the year component in the localized value of the argument |
fn:years-from-duration(datetimedur) | Returns an integer that represents the years component in the canonical lexical representation of the value of the argument |
fn:zero-or-one(item,item,...) | Returns the argument if it contains zero or one items, otherwise it raises an error |