Dear Jean-Philippe,
as you correctly guessed, there is no function in BaseX for dynamically importing XQuery modules. The function xquery:invoke [1] may serve a similar purpose. I’m not sure how the invocation of Java code could help here, so could you give us some more information on what you plan to do, and what needs to be done at runtime in your scenario?
Thanks, Christian
PS: our team member Leo is currently having a look at the circular module import issue.
[1] http://docs.basex.org/wiki/XQuery_Module#xquery:invoke ___________________________
Exist-db has an util:import-module function 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
-- Jean-Philippe Magué Maître de Conférences en Humanités Numériques Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr Ecole Normale Supérieure de Lyon +33 (0)4 26 23 38 08
--
"Using computers will therefore lead us to a more profound and systematic knowledge of human expression; in principle, it can help us to be more humanistic than before." Busa, 1980.
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk