Changes

Jump to navigation Jump to search
15 bytes removed ,  11:03, 22 January 2013
BaseX offers the following mechanisms to make modules accessible to the XQuery processor:
# XQuery modules can be manually copied to the repository directory.# With the The default [[#Packaging|packagingPackaging]] packaging mechanism, will install single XQuery and Java modules can directly be installed to in the repository.
# 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.
All modules are stored in the ''repository''. The repository is a directory named {{Code|BaseXRepo}} or {{Code|repo}}, which resides in your [[Configuration#Home Directory|home directory]]. XQuery modules can also be manually copied to the repository directory at runtime.
Modules placed in this directory can be imported with the {{Code|import module}} statement, followed by a freely choosable prefix and the correct namespace. The following example calls a function from the FunctX module:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu