Hi,
I'm trying to use a most recent version of BaseX server (I'm stuck with 8.4.4 now), and I'm trying to use base-uri to import my modules (BaseX latest snapshot). However, I can't seem to make this work. While declaring the base-uri works for the XQuery scripts that runs on BaseX GUI, basexserver and basexhttp seems to be giving errors. Unless I'm doing something very wrong, I get this error from my library module:
lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
Also I'm declaring the base-uri in the main module only, like: declare base-uri "file:///home/user/directory/"; without the final slash it gets resolved to the previous directory, I guess that's intentional? I only found a reference in this closed issue: https://github.com/BaseXdb/basex/issues/1454
The alternative would be to bring QUERYPATH back, somehow :) I will then be able to upgrade without compatibility issues.
Thanks,
George
On 10/28/2016 02:06 PM, Christian Grün wrote:
Well, this will be difficult… We had to do numerous rewritings, and the QUERYPATH option was kind of hacky (seen from today’s perspective). We may be able adding something similar for specific use cases like yours, but I can’t promise anything yet.