An example of how to package up XQuery functions as modules and function extensions