Hi Ralf,
well, I guess, this is the default Java behavior, and AFAIK BaseX does not provide such an option (but I need to check).
However, you may find that using the packaging API [1] is a much more convenient way of managing XQuery module libraries.
Greetings, Dimitar
[1] http://docs.basex.org/wiki/Packaging
Am Donnerstag, 22. September 2011, 13:19:47 schrieb Ralf Jung:
Hi list,
since my XQuery's share some common utility functions, I created a "global.xq" file to contain those functions, and the actual scripts import that file using
import module namespace red-db="red-db" at "global.xq";
However, BaseX then looks for that file in the working directory where it was started. Is there any way to configure that behaviour, e.g. to look into the HTTPPATH folder the script is located in, or maybe to make the lookup relative to the script that contains this command? Currently I always have to cd to the HTTPPATH folder before starting BaseX.
I am using the current git master version.
Kind regards, Ralf _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk