XQuery Module

This XQuery Module contains functions for parsing and evaluating XQuery strings at runtime, and to run code in parallel.

=Conventions=

All functions and errors in this module are assigned to the  namespace, which is statically bound to the xquery prefix.

=Dynamic Evaluation=

xquery:eval-update
=XQuery Parsing=

xquery:parse-uri
=Parallelized Execution=

Parallel query execution is recommendable if you have various calls that require a lot of time, but that cannot be sped up by rewriting the code. This is e. g. the case if external URLs are called. If you are parallelizing local data reads (such as the access to a database), single-threaded queries will usually be faster, because parallelized access to disk data often results in randomized access patterns, which will rarely be optimized by the caching strategies of HDDs, SSDs, or the operating system.

xquery:fork-join
=Errors=

=Changelog=


 * Version 9.2


 * Deleted: xquery:invoke, xquery:invoke-update (merged with xquery:eval and xquery:eval-update)


 * Version 9.0


 * Added: xquery:invoke-update
 * Updated: xquery:eval: pass option added
 * Updated: xquery:parse, xquery:parse-uri: base-uri option added
 * Updated: xquery:update renamed to xquery:eval-update
 * Updated: error codes updated; errors now use the module namespace


 * Version 8.5


 * Added: xquery:fork-join
 * Updated: xquery:eval: base-uri option added
 * Updated: Relative URIs will always be resolved against the static base URI of the query
 * Deleted: xquery:type (moved to Profiling Module)


 * Version 8.4


 * Added: xquery:parse-uri
 * Updated: xquery:parse: pass option added


 * Version 8.0


 * Added: xquery:update, xquery:parse
 * Deleted: xquery:evaluate (opened databases will now be closed by main query)


 * Version 7.8.2


 * Added: $options argument


 * Version 7.8


 * Added: xquery:evaluate
 * Updated: used variables must be explicitly declared in the query string.

This module was introduced with Version 7.3. Functions have been adopted from the obsolete Utility Module.