Hi Christian,
If I'm not mistaken it only works if you declare it inside the query, which is not an option for my use case, because the scripts can run in different environments with paths that are setup in environment variables.
This probably only affects the QueryProcessor constructor. But I will try to doublecheck that and send an email again if it's still doing the same.
On 1/25/19 2:40 PM, Christian Grün wrote:
Are you sure about that? If you run the following query (after updating the base uri to your local environment)…
declare base-uri 'file:///c:/users/user/desktop/'; import module namespace a = 'a' at 'a.xqm'; doc('x.xml')
…both the a.xqm module and the x.xml document will be looked up in the specified directory. If you remove the trailing slash from the URI, the files will be looked up in the parent directory (in accordance with the official specs).
Feel free to provide us with such an example, we’ll be happy to include it in our collection of Java examples.
Best, Christian