XQuery is a Turing complete language, but it just provides around 100 pre-defined functions, which cannot meet all requirements. This is why additional libraries arise – such as [http://www.xqueryfunctions.com/ FunctX] – that extend the language with new features.
BaseX offers two the following mechanisms to make new packages accessible to the XQuery processor:
# XQuery modules can be manually copied to the repository directory.
# With the default [[#Packaging|packaging]] packaging mechanism, single XQuery and Java modules can directly be installed to the repository.
# The [[#EXPath Packaging|EXPath Packaging]] system provides a generic mechanism for adding XQuery modules to query processors. A package is defined as a {{Code|.xar}} archive, which encapsulates one or more extension libraries.
If modules have been placed in the repository, there will be no need to add locations to the XQuery {{Code||import module}} statement.
==Usage==