Problems with XUpdate

Having trouble installing Oxygen? Got a bug to report? Post it all here.
mbecher
Posts: 2
Joined: Sun Oct 24, 2010 10:09 am

Problems with XUpdate

Post by mbecher »

Hello,

I have some simple XUpdate examples which worked fine in Oxygen 11. But in Oxygen 12 I get error messages: e. g. "E [Saxon-EE XQuery 9.2.1.2] XQuery syntax error in #insert nodes doc#: Unexpected token "insert nodes" in path expression". I presume in Oxygen 11(Saxon) the default value for XUpdate was "on" and now it's off. I added a configuration file to the transformation scenario which contains

Code: Select all

<configuration xmlns="http://saxon.sf.net/ns/configuration" edition="EE">
<xquery allowUpdate="true"/>
</configuration>
But I get the same error mesage like before.

Thanks for help
Margit
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Problems with XUpdate

Post by adrian »

Hello,

Could you please send us one of these XUpdate examples that fail to our support email address: support@oxygenxml.com for further investigation.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
mbecher
Posts: 2
Joined: Sun Oct 24, 2010 10:09 am

Re: Problems with XUpdate

Post by mbecher »

Hello,

I think a have a solution.

If I enable XQuery1.1 support, the error message is shown.
If XQuery 1,1 support is disabled, all examples work fine - irregardless of the oxygen version.

Greets
Margit
frankmoss
Posts: 5
Joined: Wed Apr 21, 2010 11:15 am

Re: Problems with XUpdate

Post by frankmoss »

How did you enable support for Xquery 1.1?
frankmoss
Posts: 5
Joined: Wed Apr 21, 2010 11:15 am

Re: Problems with XUpdate

Post by frankmoss »

Dont bother, I found it.
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: Problems with XUpdate

Post by adrian »

Hello,

Just to let other people know this...
The XQuery 1.1 support for Saxon can be enabled from:
Options -> Preferences -> XML -> XSLT-FO-XQuery -> XQuery -> Saxon-HE/PE/EE, "Saxon-EE specific options", "Enable XQuery 1.1 support".
(Can be easily found if you type "xquery 1.1" in the filter field from the preferences dialog).

On Eclipse it's in Window -> Preferences -> oXygen -> XML ...

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