Changes

Jump to navigation Jump to search
331 bytes removed ,  10:39, 24 June 2013
===XQuery===
If an XQuery file is specified as input for the install command, it will be parsed as XQuery library module. If parsing was successful, the module URI will be [[#URI Rewriting|rewritten]] to a file path and attached with the {{Code|.xqm}} file suffix, and the original file will be renamed and copied to that path into the repository.
'''Example:'''
 
Contents of the file <code>[http://files.basex.org/modules/org/basex/modules/Hello/HelloWorld.xqm HelloWorld.xqm]</code> (comments removed):
 
<pre class="brush:xquery">
module namespace m = 'http://basex.org/modules/Hello';
declare function m:hello($world) {
'Hello ' || $world
};
</pre>
Installation (the original file will be copied to {{Code|org/basex/modules/Hello.xqm}}):
REPO INSTALL http://files.basex.org/modules/org/basex/modules/Hello/HelloWorld.xqm
XQuery file <code>[http://files.basex.org/modules/org/basex/modules/Hello/HelloUniverse.xq HelloUniverse.xq]</code> (comments removed)Importing the repository module:
<pre class="brush:xquery">
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu