XQuery Module Validation

Issues related to W3C XQuery.
CurtisFleming
Posts: 5
Joined: Wed Sep 07, 2011 9:24 pm

XQuery Module Validation

Post by CurtisFleming »

I am interested in getting Oxygen to validate the contents of XQuery modules in real-time. Being able to catch grammar errors like bad parentheses or missing a 'then' like any other main XQuery would be a huge time saver. It is not intuitive why wrapping XQuery in a declare function statement shields it from static analysis.

The error message:
Engine name: Saxon-EE XQuery 9.3.0.5
Description: XQuery module validation/execution is not supported. Please validate/execute the main XQuery file.

I am using xDB 10.2 and I'm aware that an Oxygen-xDB connection exists but don't have the Enterprise license for it (yet). By activating the connector and switching the XQuery validation engine to the xDB connector, will real-time module validation be available, with red underlined text, etc.?

Thanks
Curt
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: XQuery Module Validation

Post by adrian »

Hello,

Saxon-EE(the default XQuery validator that Oxygen uses) cannot validate modules out of context(on their own), it needs a main XQuery file that imports them.

If you have an Enterprise license and an xDB connection configured, you will be able to transform and validate with the xDB XQuery engine.
Note however that automatic validation(validate as you type) is not available when using remote database engines such as xDB. You can use the manual validation instead: Document > Validate > Validate after configuring a transformation or a validation scenario that specified the xDB connection as the engine.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply