If an XQuery file is specified as input for the install command, it will be copied to the repository if it can be successfully parsed as an XQuery module.
The module URI will be [[#URI TransformationRewriting|transformedrewritten]] to a file path, and the file will be to the last URI path segment and attached with the {{Mono|.xqm}} file suffix.
===Java===
On our [http://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.
==URI TransformationRewriting==
If modules are looked up in the repository, their URIs are rewritten to a local file path. The URI transformation has been inspired by [http://www.zorba-xquery.com/html/documentation/latest/zorba/uriresolvers Zorba]: