-<xqdoc:xqdoc>
-<xqdoc:module type="library">
<xqdoc:uri>http://www.w3.org/2005/xpath-functions</xqdoc:uri>
-<xqdoc:comment>
<xqdoc:description>XQuery/XPath Core Library Functions</xqdoc:description>
</xqdoc:comment>
</xqdoc:module>
-<xqdoc:functions>
-<xqdoc:function>
<xqdoc:name>QName</xqdoc:name>
<xqdoc:signature>QName($a as xs:string?, $b as xs:string) xs:QName</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:QName with the namespace URI given in $a. If $a is the empty string or the empty sequence, it represents 'no namespace'. The prefix in $b is retained in the returned xs:QName value. The local name in the result is taken from the local part of $b</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>abs</xqdoc:name>
<xqdoc:signature>abs($a as numeric?) numeric</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the absolute value of the argument. If the argument is negative returns -arg otherwise returns arg.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-date-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-date-to-timezone($a as xs:date?) xs:date?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:date value to the implicit timezone of the current locale.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-date-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-date-to-timezone($a as xs:date?, $b as xdt:dayTimeDuration?) xs:date?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:date value to a specific timezone, or to no timezone at all. If $b is the empty sequence, returns an xs:date without a timezone.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-dateTime-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-dateTime-to-timezone($a as xs:dateTime?) xs:dateTime?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:dateTime value to the implicit timezone of the current locale.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-dateTime-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-dateTime-to-timezone($a as xs:dateTime?, $b as xdt:dayTimeDuration?) xs:dateTime?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:dateTime value to a specific timezone, or to no timezone at all. If $b is the empty sequence, returns an xs:dateTime without a timezone.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-time-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-time-to-timezone($a as xs:time?) xs:time?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:time value to the implicit timezone of the current locale.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>adjust-time-to-timezone</xqdoc:name>
<xqdoc:signature>adjust-time-to-timezone($a as xs:time?, $b as xdt:dayTimeDuration?) xs:time?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Adjusts an xs:time value to a specific timezone, or to no timezone at all. If $b is the empty sequence, returns an xs:time without a timezone.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>avg</xqdoc:name>
<xqdoc:signature>avg($a as xdt:anyAtomicType*) xdt:anyAtomicType?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the average of the values in the input sequence $a, that is, the sum of the values divided by the number of values.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>base-uri</xqdoc:name>
<xqdoc:signature>base-uri() xs:anyURI?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>This version of the function returns the value of the base-uri property from the static context. If the base-uri property is undefined, the empty sequence is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>base-uri</xqdoc:name>
<xqdoc:signature>base-uri($a as node()?) xs:anyURI?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the value of the base-uri property for $a. If $a is the empty sequence, the empty sequence is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>boolean</xqdoc:name>
<xqdoc:signature>boolean($a as item()*) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Computes the xs:boolean value of the sequence argument.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>ceiling</xqdoc:name>
<xqdoc:signature>ceiling($a as numeric?) numeric</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a value of the same type as the argument. Specifically, returns the smallest (closest to negative infinity) number with no fractional part that is not less than the value of the argument.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>codepoint-equal</xqdoc:name>
<xqdoc:signature>codepoint-equal($a as xs:string?, $b as xs:string?) xs:boolean?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true or false depending on whether the value of $a is equal to the value of $b, according to the Unicode code point collation</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>codepoints-to-string</xqdoc:name>
<xqdoc:signature>codepoints-to-string($a as xs:integer*) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Creates an xs:string from a sequence of code points. Returns the zero-length string if $a is the empty sequence. If any of the code points in $a is not a legal XML character, an error is raised</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>collection</xqdoc:name>
<xqdoc:signature>collection($a as xs:string*, ...) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the documents contained in the collections specified in the input sequence. The arguments are either collection pathes like '/db/shakespeare/plays' or XMLDB URIs like 'xmldb:exist://localhost:8081//db/shakespeare/plays'. Documents contained in subcollections are also included.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>compare</xqdoc:name>
<xqdoc:signature>compare($a as xs:string?, $b as xs:string?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description/>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>compare</xqdoc:name>
<xqdoc:signature>compare($a as xs:string?, $b as xs:string?, $c as xs:string) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description/>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>concat</xqdoc:name>
<xqdoc:signature>concat($a as xdt:anyAtomicType?, ...) xs:string?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Accepts two or more xdt:anyAtomicType arguments and converts them to xs:string. Returns the xs:string that is the concatenation of the values of its arguments after conversion. If any of the arguments is the empty sequence, the argument is treated as the zero-length string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>contains</xqdoc:name>
<xqdoc:signature>contains($a as xs:string?, $b as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:boolean indicating whether or not the value of $arg1 contains (at the beginning, at the end, or anywhere within) at least one sequence of collation units that provides a minimal match to the collation units in the value of $arg2, according to the default collation.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>contains</xqdoc:name>
<xqdoc:signature>contains($a as xs:string?, $b as xs:string?, $c as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:boolean indicating whether or not the value of $arg1 contains (at the beginning, at the end, or anywhere within) at least one sequence of collation units that provides a minimal match to the collation units in the value of $arg2, according to the collation that is specified in $arg3.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>count</xqdoc:name>
<xqdoc:signature>count($a as item()*) xs:integer</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the number of items in the argument sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>current-date</xqdoc:name>
<xqdoc:signature>current-date() xs:date</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the xs:date (with timezone) that is current at some time during the evaluation of a query or transformation in which fn:current-date() is executed.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>current-dateTime</xqdoc:name>
<xqdoc:signature>current-dateTime() xs:dateTime</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the xs:dateTime (with timezone) that is current at some time during the evaluation of a query or transformation in which fn:current-dateTime() is executed.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>current-time</xqdoc:name>
<xqdoc:signature>current-time() xs:time</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the xs:time (with timezone) that is current at some time during the evaluation of a query or transformation in which fn:current-time() is executed.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>data</xqdoc:name>
<xqdoc:signature>data($a as item()*) xdt:anyAtomicType*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>fn:data takes a sequence of items and returns a sequence of atomic values.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>dateTime</xqdoc:name>
<xqdoc:signature>dateTime($a as xs:date?, $b as xs:time?) xs:dateTime?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Creates an xs:dateTime from an xs:date and an xs:time.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>day-from-date</xqdoc:name>
<xqdoc:signature>day-from-date($a as xs:date?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer between 1 and 31, both inclusive, representing the day component in the localized value of $a.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>day-from-dateTime</xqdoc:name>
<xqdoc:signature>day-from-dateTime($a as xs:dateTime?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer between 1 and 31, both inclusive, representing the day component in the localized value of $a.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>days-from-duration</xqdoc:name>
<xqdoc:signature>days-from-duration($a as xdt:dayTimeDuration?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer representing the days component in the canonical lexical representation of the value of $a. The result may be negative.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>deep-equal</xqdoc:name>
<xqdoc:signature>deep-equal($a as item()*, $b as item()*) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true iff every item in $a is deep-equal to the item at the same position in $b, false otherwise. If both $a and $b are the empty sequence, returns true. </xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>deep-equal</xqdoc:name>
<xqdoc:signature>deep-equal($a as item()*, $b as item()*, $c as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true iff every item in $a is deep-equal to the item at the same position in $b, false otherwise. If both $a and $b are the empty sequence, returns true. Comparison collation is specified by $c</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>default-collation</xqdoc:name>
<xqdoc:signature>default-collation() xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the context's default collation.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>distinct-values</xqdoc:name>
<xqdoc:signature>distinct-values($a as xdt:anyAtomicType*) xdt:anyAtomicType*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a sequence where duplicate values of $a, based on value equality, have been deleted.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>distinct-values</xqdoc:name>
<xqdoc:signature>distinct-values($a as xdt:anyAtomicType*, $b as xs:string) xdt:anyAtomicType*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a sequence where duplicate values of $a, based on value equality specified by collation $b, have been deleted.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>doc</xqdoc:name>
<xqdoc:signature>doc($a as xs:string?) node()?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the documents specified in the input sequence. The arguments are either document paths like '/db/shakespeare/plays/hamlet.xml' or XMLDB URIs like 'xmldb:exist://localhost:8081//db/shakespeare/plays/hamlet.xml' or standard URLs starting with http://, file://, etc.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>doc-available</xqdoc:name>
<xqdoc:signature>doc-available($a as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns whether or not the document specified in the input sequence is available. The arguments are either document pathes like '/db/shakespeare/plays/hamlet.xml' or XMLDB URIs like 'xmldb:exist://localhost:8081//db/shakespeare/plays/hamlet.xml' or standard URLs, starting with http://, file://, etc.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>doctype</xqdoc:name>
<xqdoc:signature>doctype($a as xs:string+) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the document nodes of the documents whose DOCTYPE is given by $a.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>document</xqdoc:name>
<xqdoc:signature>document($a as xs:string+, ...) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the documents specified in the input sequence. This function is specific to eXist and will be replaced with the corresponding fn:doc function. The arguments are either document pathes like '/db/shakespeare/plays/hamlet.xml' or XMLDB URIs like 'xmldb:exist://localhost:8081//db/shakespeare/plays/hamlet.xml'. If the input sequence is empty, the function will load all documents in the database.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>document-uri</xqdoc:name>
<xqdoc:signature>document-uri($a as node()?) xs:anyURI?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the absolute URI of the resource from which the document node $a was constructed, if none such URI exists returns the empty sequence. If $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>empty</xqdoc:name>
<xqdoc:signature>empty($a as item()*) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the value of the argument is the empty sequence, false otherwise.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>encode-for-uri</xqdoc:name>
<xqdoc:signature>encode-for-uri($a as xs:string?) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description/>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>ends-with</xqdoc:name>
<xqdoc:signature>ends-with($a as xs:string?, $b as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the string value of $b is a suffix of the string value of $a, false otherwise. If either $a or $b is the empty sequence, the empty sequence is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>ends-with</xqdoc:name>
<xqdoc:signature>ends-with($a as xs:string?, $b as xs:string?, $c as xs:string) xs:boolean?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the string value of $b is a suffix of the string value of $a using collation $c, false otherwise. If either $a or $b is the empty sequence, the empty sequence is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>error</xqdoc:name>
<xqdoc:signature>error() empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Indicates that an irrecoverable error has occurred. The script will terminate immediately with an exception.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>error</xqdoc:name>
<xqdoc:signature>error($a as xs:QName) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Indicates that an irrecoverable error has occurred. The script will terminate immediately with an exception.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>error</xqdoc:name>
<xqdoc:signature>error($a as xs:QName?, $b as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Indicates that an irrecoverable error has occurred. The script will terminate immediately with an exception.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>error</xqdoc:name>
<xqdoc:signature>error($a as xs:QName?, $b as xs:string, $c as item()*) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Indicates that an irrecoverable error has occurred. The script will terminate immediately with an exception.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>escape-html-uri</xqdoc:name>
<xqdoc:signature>escape-html-uri($a as xs:string?) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Replaces all nonprintable ASCII characters in the string value of $a by an escape sequence represented as a hexadecimal octet in the form %XX. If $a is the empty sequence, returns the zero-length string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>escape-uri</xqdoc:name>
<xqdoc:signature>escape-uri($a as xs:string?, $b as xs:boolean) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>This function applies the URI escaping rules defined in section 2 of [RFC 2396] as amended by [RFC 2732], with one exception, to the string supplied as $a, which typically represents all or part of a URI. The effect of the function is to escape a set of identified characters in the string. Each such character is replaced in the string by an escape sequence, which is formed by encoding the character as a sequence of octets in UTF-8, and then representing each of these octets in the form %HH, where HH is the hexadecimal representation of the octet. $b indicates whether to escape reserved characters.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>exactly-one</xqdoc:name>
<xqdoc:signature>exactly-one($a as item()*) item()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the argument sequence if it contains exactly one item. Otherwise, raises an error.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>exists</xqdoc:name>
<xqdoc:signature>exists($a as item()*) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>If the argument is not the empty sequence, the function returns true; otherwise, the function returns false.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>false</xqdoc:name>
<xqdoc:signature>false() xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Always returns the boolean value false</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>floor</xqdoc:name>
<xqdoc:signature>floor($a as numeric*) numeric</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the largets number not greater than the value of $a.If $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>hours-from-dateTime</xqdoc:name>
<xqdoc:signature>hours-from-dateTime($a as xs:dateTime?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer between 0 and 23, both inclusive, representing the value of the hours component in the localized value of $arg.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>hours-from-duration</xqdoc:name>
<xqdoc:signature>hours-from-duration($a as xdt:dayTimeDuration?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer representing the hours component in the canonical lexical representation of the value of $a. The result may be negative.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>hours-from-time</xqdoc:name>
<xqdoc:signature>hours-from-time($a as xs:time?) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:integer between 0 and 23, both inclusive, representing the value of the hours component in the localized value of $arg.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>id</xqdoc:name>
<xqdoc:signature>id($a as xs:string*) element()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $a. If none is matching or $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>id</xqdoc:name>
<xqdoc:signature>id($a as xs:string*, $b as node()) element()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $a. If none is matching or $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>idref</xqdoc:name>
<xqdoc:signature>idref($a as xs:string*) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the sequence of element or attributes nodes with an IDREF value matching the value of one or more of the ID values supplied in $a. If none is matching or $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>idref</xqdoc:name>
<xqdoc:signature>idref($a as xs:string*, $b as node()) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the sequence of element or attributes nodes with an IDREF value matching the value of one or more of the ID values supplied in $a. If none is matching or $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>implicit-timezone</xqdoc:name>
<xqdoc:signature>implicit-timezone() xdt:dayTimeDuration</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the value of the implicit timezone property from the dynamic context.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>in-scope-prefixes</xqdoc:name>
<xqdoc:signature>in-scope-prefixes($a as element()) xs:string*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the prefixes of the in-scope namespaces for $a. For namespaces that have a prefix, it returns the prefix as an xs:NCName. For the default namespace, which has no prefix, it returns the zero-length string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>index-of</xqdoc:name>
<xqdoc:signature>index-of($a as xdt:anyAtomicType*, $b as xdt:anyAtomicType) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a sequence of positive integers giving the positions within the sequence $a of items that are equal to $b. If the value of $a is the empty sequence, or if no item in $a matches $b, then the empty sequence is returned.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>index-of</xqdoc:name>
<xqdoc:signature>index-of($a as xdt:anyAtomicType*, $b as xdt:anyAtomicType, $c as xs:string) xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a sequence of positive integers giving the positions within the sequence $a of items that are equal to $b. If the value of $a is the empty sequence, or if no item in $a matches $b, then the empty sequence is returned. Values are compared according to the collation specified in $c.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>insert-before</xqdoc:name>
<xqdoc:signature>insert-before($a as item()*, $b as xs:integer, $c as item()*) item()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns a new sequence constructed from the value of the target sequencewith the value of the sequence to insert inserted at the position specified.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>iri-to-uri</xqdoc:name>
<xqdoc:signature>iri-to-uri($a as xs:string?) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an URI as a xs:string if the value of $a is a valid IRI. Invald characters are escape sequence encoded before the conversion. If $a is the empty sequence, returns the zero-length string.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>item-at</xqdoc:name>
<xqdoc:signature>item-at($a as item()*, $b as xs:integer) xs:boolean?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the item in the first argument sequence that is located at the position specified by the second argument. Deprecated. Use $x[1] instead.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>lang</xqdoc:name>
<xqdoc:signature>lang($a as xs:string?) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the context items xml:lang attribute is equal to the value of $a, false otherwise.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>lang</xqdoc:name>
<xqdoc:signature>lang($a as xs:string?, $b as node()) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the context items xml:lang attribute is equal to the value of $a, false otherwise.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>last</xqdoc:name>
<xqdoc:signature>last() xs:integer?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the context size from the dynamic context. If the context item is undefined, an error is raised.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>local-name</xqdoc:name>
<xqdoc:signature>local-name() xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the local part of the name of the context item as an xs:string that will either be the zero-length string or will have the lexical form of an xs:NCName.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>local-name</xqdoc:name>
<xqdoc:signature>local-name($a as node()?) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns the local part of the name of the value of $a as an xs:string that will either be the zero-length string or will have the lexical form of an xs:NCName.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>local-name-from-QName</xqdoc:name>
<xqdoc:signature>local-name-from-QName($a as xs:QName?) xs:NCName?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns an xs:NCName representing the local part of $a. If $a is the empty sequence, returns the empty sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>lower-case</xqdoc:name>
<xqdoc:signature>lower-case($a as xs:string?) xs:string</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description/>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>match-all</xqdoc:name>
<xqdoc:signature>match-all($a as node()*, $b as xs:string+, ...) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>eXist-specific extension function. Tries to match each of the regular expression strings passed in $b and all following parameters against the keywords contained in the fulltext index. The keywords found are then compared to the node set in $a. Every node containing all of the keywords is copied to the result sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>match-any</xqdoc:name>
<xqdoc:signature>match-any($a as node()*, $b as xs:string+, ...) node()*</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>eXist-specific extension function. Tries to match each of the regular expression strings passed in $b and all following parameters against the keywords contained in the fulltext index. The keywords found are then compared to the node set in $a. Every node containing any of the keywords is copied to the result sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>matches</xqdoc:name>
<xqdoc:signature>matches($a as xs:string*, $b as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the first argument string matches the regular expression specified by the second argument. This function is optimized internally if a range index of type xs:string is defined on the nodes passed to the first argument. Please note that - in contrast - with the specification - this method allows zero or more items for the string argument.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>matches</xqdoc:name>
<xqdoc:signature>matches($a as xs:string*, $b as xs:string, $c as xs:string) xs:boolean</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Returns true if the first argument string matches the regular expression specified by the second argument. This function is optimized internally if a range index of type xs:string is defined on the nodes passed to the first argument. Please note that - in contrast - with the specification - this method allows zero or more items for the string argument.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>max</xqdoc:name>
<xqdoc:signature>max($a as xdt:anyAtomicType*) xdt:anyAtomicType?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Selects an item from the input sequence $a whose value is greater than or equal to the value of every other item in the input sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>max</xqdoc:name>
<xqdoc:signature>max($a as xdt:anyAtomicType*, $b as xs:string) xdt:anyAtomicType?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Selects an item from the input sequence $a whose value is greater than or equal to the value of every other item in the input sequence. The collation URI specified in $b will be used for string comparisons.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>min</xqdoc:name>
<xqdoc:signature>min($a as xdt:anyAtomicType*) xdt:anyAtomicType?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Selects an item from the input sequence $a whose value is less than or equal to the value of every other item in the input sequence.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>min</xqdoc:name>
<xqdoc:signature>min($a as xdt:anyAtomicType*, $b as xs:string) xdt:anyAtomicType?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Selects an item from the input sequence $a whose value is less than or equal to the value of every other item in the input sequence. The collation specified in $b is used for string comparisons.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>minutes-from-dateTime</