Category: XQuery

eXist-db: Installing XQuery functx module

existdbUsing the blog as a notepad, I will start posting here some notes on things I discover and are not very clear in the documentation (or I just did not find it at first).

In the last times I have been hacking in eXist-db, and writing XQuery. I noticed a website with a lot of interesting functions with the functx prefix. The eXist-db website help reference returns hits for this module. But it is not installed by default (or at least, it can happen on not being installed by default).

To install it, just run this XQuery command:

repo:install-and-deploy(“”, “1.0”,

After installation the functx module can be loaded with

import module namespace functx = “” at “/db/system/repo/functx-1.0/functx/functx.xql”;

Also, for reference, I found the list of eXist packages here.