===Using a Package===
The functionality offered by an already installed package Installed packages can be used addressed by a module importimporting them as ''modules''. Since we have the package repository where in which all packages resideare located, it is not needed sufficient to indicate just specify the exact place namespace of the a module you want to use. It is enough to just import its namespace:
<pre class="brush:xquery">import module namespace functx = "http://www.functx.com";</pre>
At "seeing" When this statement BaseX is parsed, the query processor will check if the namespace "http://www.functx.com" is used in some any of the installed packages and , if yes, it will load their and parse the modules. After that In the remaining query, you can call the parsed module functions from a module in the standard way, e.g.:
<pre class="brush:xquery">functx:capitalize-first("test")</pre>
If you want to use a package which encapsulates jar files, you will have to import Package encapsulating Java archives can be imported in the same way the namespace of the module which wraps the java methods and call the as pure XQuery wrapper functions for these methodsmodules (see below).
===Deleting a Package===