Hello,
I think that module importation is broken. When importing a library module that defines functions, the query parser apparently doesn't import the target namespace, and consequently fails to register the imported functions into the main modules's context.
Example:
(: module libmod.xq :)
module namespace libmod = "libmod" ;
declare function libmod:hello() as element() {
<hello>world</hello>
} ;
(: module mainmod.xq :)
import module namespace libmod = "libmod" at "libmod.xquery" ;
libmod:hello()
Trying to run mainmod.xq fails, complaining that the libmod prefix is in an unallocated namespace.
Any help would be greatly appreciated :-)
Correction: the bug only appears when using the XQJ interface
Was already fixed in SVN trunk, added a test case in SVN revision 4287