Hello,
Exist-db has an util:import-modulehttp://exist-db.org/exist/apps/fundocs/view.html?uri=http://exist-db.org/xquery/util&location=java:org.exist.xquery.functions.util.UtilModulefunction that allows to dynamically import an XQuery module at run time. I haven't found anything equivalent in BaseX. Is that right ?
I have also tried to see how to implement such a function directly in Java, but as far as I understand the module parsing process, functions prefix are checked at compile time. That would compromise any attempt to write such a function. Am I right ?
Best,
Jean-Philippe