[MarkLogic Dev General] Syntax errors in oXygen

Wyatt VanderStucken marklogic at wylovan.com
Thu Aug 28 05:45:59 PDT 2008


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
> General at developer.marklogic.com
> http://xqzone.com/mailman/listinfo/general



More information about the General mailing list