If you are using XCC to connect to MLS in oXygen, and thus have a connection to MLS in Preferences > Data Sources, you can change the XQuery validation mechanism in oXygen...

Under Preferences > XML > XSLT-FO-XQuery > XQuery there is a drop-down titled "XQuery Validate With". If you select the connection to MLS here the validation error will go away.

Regards,
Wyatt


Eric Palmitesta wrote:
Hello all, first transmission to the mailing list so let me know if there are any conventions I'm breaking.

I have oXygen 9.3 (currently using the Academic license) installed as a standalone application, and an Eclipse 3.4.0 plugin. In both instances, oXygen and MarkLogic don't agree on syntax.

For example, a have a main file which starts off like such...

xquery version "1.0"
import module namespace display = "blah" at "path/to/blah.xqy"
display:header()
....

MarkLogic executes this file as expected, no errors or warnings. Meanwhile, oXygen say there are syntax errors (missing semi-colons at the end of the 1st and 2nd lines). If I fix these syntax errors, the file looks like such...

xquery version "1.0";
import module namespace display = "blah" at "path/to/blah.xqy";
display:header()
....

However, upon refreshing this in a browser, MarkLogic tells me "XDMP-UNEXPECTED: Unexpected token syntax error, unexpected SemiColon_" on lines 1 and 2.

Is there some setting or mode I'm unaware of in oXygen to align it with what MarkLogic expects/requires?

Cheers,

Eric
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to