'''Example:'''
Contents of the file {{Mono|HelloWorld.xqxqm}} (comments removed):
<pre class="brush:xquery">
Installation (the original file will be copied to {{Mono|org/basex/modules/Hello.xqm}}):
REPO INSTALL HelloWorld.xqxqm
XQuery importing the modulefile {{Mono|HelloUniverse.xq}} (comments removed):
<pre class="brush:xquery">
'''Example:'''
Structure of a the {{Mono|HelloWorld.jar}} archive:
META-INF/
Hello.class
Contents of the file {{Mono|MANIFEST.mf}}(the whitespaces are obligatory):
Manifest-Version: 1.0
Main-Class:org.basex.modules.Hello Contents of the file {{Mono||Hello.java}} (comments removed): <pre class="brush:java">package org.basex.modules;public class Hello { public String hello(final String world) { return "Hello " + world; }}</pre>
Installation (the file will be copied to {{Mono|org/basex/modules/Hello.jar}}):
REPO INSTALL HelloWorld.jar
XQuery importing the module file {{Mono|HelloUniverse.xq}} (same as above):
<pre class="brush:xquery">