On 30 December 2013 12:03, jean-marc Mercier wrote:
Hi Jean-Marc,
I see only two quite not very handy ways to do this :
- The first one is to use JAVA bindings. Ok, it will work, but is
not really elegant.
- The second one is to fork BaseX code : adding the JAVA code to
BaseX, modifying the file Function.JAVA. That might work, should be efficient, but it is quite heavy, and overall, will be most probably a dead-code the next time I will have to upgrade BaseX.
Is there any alternative way ?
If I understand correctly, you want to use an extension library module, written in Java, from another XQuery module. The following page on BaseX wiki document how to do it with a package:
http://docs.basex.org/wiki/Repository#EXPath_Packaging
Regards,