XQuery Module Validation

Issues related to W3C XQuery.
CurtisFleming
Posts: 5

XQuery Module Validation

Sat Mar 10, 2012 4:53 am

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: 2326

Re: XQuery Module Validation

Mon Mar 12, 2012 5:43 pm

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

Return to “XQuery”

Who is online

Users browsing this forum: No registered users and 0 guests