Unable to import module on eXist server
Posted: Wed Apr 10, 2013 12:57 pm
Hi,
I'm using Oxygen to write XQuery 3.0 that is executed on an eXist 2.0 server. Everything works fine except I am unable to import other modules in my code.
No matter what path I give it, I always get the error below (with a different location hint):
I've tried the suggestions given here: http://www.oxygenxml.com/forum/post5147.html#p5147
But none of them have worked. I've tried the following:
Thanks,
Mike
I'm using Oxygen to write XQuery 3.0 that is executed on an eXist 2.0 server. Everything works fine except I am unable to import other modules in my code.
Code: Select all
import module namespace example="http://example.com/xquery/example" at "example.xqm";
Code: Select all
err:XQST0059 error found while loading module moduleName: Source for module 'http://example.com/xquery/example' not found module location hint URI 'example.xqm.
But none of them have worked. I've tried the following:
- relative path (since the module is in the same directory): "example.xqm"
- "/db/modules/example.xqm"
- "xmldb:exist///db/modules/example.xqm"
- "xmldb:exist//localhost:8080/db/modules/example.xqm"
- "xmldb:exist//user:pass@localhost:8080/db/modules/example.xqm"
- "http://localhost:8080/exist/rest/db/modules/example.xqm"
Thanks,
Mike