XQuery Validation problem with imported modules
Posted: Wed Jan 06, 2010 9:01 pm
I am having problems validating XQuery files stored in eXist, if the XQuery file imports an XQuery module via a relative path. I believe this is an oXygen issue, not an eXist issue.
If I use a relative path, I can only get a red light during validation, not a green light. For example, this will give me a red light:
The only way that oXygen will validate and give me the green light is if I provide an absolute URI, e.g.:
Wolfgang Meier (the creator of eXist) corroborated this issue: "oXygen does correctly resolve the import if the main XQuery was loaded from the file system, but *not* if you opened it using WebDAV. The error message indicates that Oxygen is looking for the module on the file system."
Thus, my bug/feature request: Add the ability for oXygen's XQuery Validation to resolve a relative path to a module imported by an XQuery file stored in eXist-db. In other words, relative paths should be evaluated relative to the location of the original XQuery file.
Note: I'm using oXygen XML Editor v11.1 with eXist 1.4.x-stable. By "validate" I mean open an XQuery file and select Document > Validate > Validate Document. I've selected my eXist instance as my XQuery validator via Preferences > XQuery > XQuery Validate with. Otherwise, XQuery validation and function auto completion work perfectly, so I know the connection with eXist works.
Please let me know if I can provide any other information.
Thank you,
Joe
If I use a relative path, I can only get a red light during validation, not a green light. For example, this will give me a red light:
Code: Select all
import module namespace myns="http://mysite.com/myns" at "modules/mymodule.xqm";
Code: Select all
import module namespace myns="http://mysite.com/myns" at "xmldb:exist:///db/site/modules/mymodule.xqm";
Thus, my bug/feature request: Add the ability for oXygen's XQuery Validation to resolve a relative path to a module imported by an XQuery file stored in eXist-db. In other words, relative paths should be evaluated relative to the location of the original XQuery file.
Note: I'm using oXygen XML Editor v11.1 with eXist 1.4.x-stable. By "validate" I mean open an XQuery file and select Document > Validate > Validate Document. I've selected my eXist instance as my XQuery validator via Preferences > XQuery > XQuery Validate with. Otherwise, XQuery validation and function auto completion work perfectly, so I know the connection with eXist works.
Please let me know if I can provide any other information.
Thank you,
Joe