Changes

Jump to navigation Jump to search
20 bytes added ,  10:13, 12 May 2015
# The [[#EXPath Packaging|EXPath Packaging]] system provides a generic mechanism for adding XQuery modules to query processors. A package is defined as a {{Code|.xar}} archive, which encapsulates one or more extension libraries.
=Importing Accessing Modules=
Library modules can be imported with the {{Code|import module}} statement,
Repository modules are stored in a directory named {{Code|BaseXRepo}} or {{Code|repo}}, which resides in your [[Configuration#Home Directory|home directory]]. XQuery modules can be manually copied to the repository directory or installed and deleted via [[#Commands|commands]].
If a modules is has been placed in the repository(see below), there is no need to specify a the location. The following example calls a function from the FunctX module:
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu