Changes

Jump to navigation Jump to search
183 bytes added ,  06:27, 10 April 2013
→‎Introduction: import from nearby files
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. (One can also of course use e.g.,「import module namespace j='http://example.org/' at "j.xq";」to import from nearby files. Just make sure 'import' comes beforeother commands.) The following example calls a function from the FunctX module:
<pre class="brush:xquery">
editor, reviewer
9

edits

Navigation menu