Changes

Jump to navigation Jump to search
104 bytes added ,  13:45, 12 April 2013
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:
functx:capitalize-first('test')
</pre>
 
Modules can also be imported from anywhere else in the local file system, as shown below:
 
<pre class="brush:xquery">
import module namespace j = 'http://example.org/' at "j.xq";
...
</pre>
 
In all cases, the import statements should be placed at the very beginning of the query file.
The following section will tell you how to install the module via BaseX [[commands]].
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu