Changes

Jump to navigation Jump to search
4 bytes added ,  12:45, 2 July 2020
m
Text replacement - "[http://files.basex.org/" to "[https://files.basex.org/"
'''Example:'''
Structure of the <code>[httphttps://files.basex.org/modules/org/basex/modules/Hello/HelloWorld.jar HelloWorld.jar]</code> archive:
META-INF/
REPO INSTALL HelloWorld.jar
XQuery file <code>[httphttps://files.basex.org/modules/org/basex/modules/Hello/HelloUniverse.xq HelloUniverse.xq]</code> (same as above):
<syntaxhighlight lang="xquery">
==XQuery==
Apart from the package descriptor, a {{Code|.xar}} archive contains a directory which includes the actual XQuery modules. For example, the [httphttps://files.basex.org/modules/expath/functx-1.0.xar FunctX XAR archive] is packaged as follows:
<syntaxhighlight>
As it can be seen, the class {{Code|Printer}} is declared with its binary name as a namespace prefixed with "java" and the XQuery function is implemented using the [http://docs.basex.org/wiki/Java_Bindings Java Bindings] offered by BaseX.
On our [httphttps://files.basex.org/modules/ file server], you can find some example libraries packaged as XML archives (xar files). You can use them to try our packaging API or just as a reference for creating your own packages.
=Performance=
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu