mblakele/xqut — Issue #5: path resolution issues (environment/@root vs import/@at)
Author: jfix
Created: 2012-01-04 23:07:11+00:00
State: open

assume "/Users/jakob/Projects/test" is the location of my modules on the filesystem.

if the environment/@root attribute is set to "/" and the import/@at attribute contains the absolute path, the module is found ok, and my tests execute, yay!

if however i reverse this and set the environment/@root attribute to "/Users/jakob/Projects/test/" and the import/@at to a relative path, xqut doesn't find the module.

here's beginning of the stacktrace (can provide full if needed) which shows that xqut seems to concatenate a duplicate path:

```xml
SVC-FILOPN

1.0-ml
File open error
SVC-FILOPN: File open error: open '/Users/jakob/Projects/test/Users/jakob/Projects/test/tests/config.xqy': No such file or directory
false

```

also: the document root of the xdbc server i'm using to connect to via oxygenxml can be either "/" or the absolute path, it makes no difference. note that i'm not actually using this server/database for anything apart from executing the xquery in marklogic.

thanks for looking into this.