Page 1 of 1

Problems with XUpdate

Posted: Sun Oct 24, 2010 10:18 am
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

Re: Problems with XUpdate

Posted: Mon Oct 25, 2010 3:54 pm
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

Re: Problems with XUpdate

Posted: Tue Oct 26, 2010 10:27 am
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

Re: Problems with XUpdate

Posted: Fri Nov 19, 2010 11:34 am
by frankmoss
How did you enable support for Xquery 1.1?

Re: Problems with XUpdate

Posted: Fri Nov 19, 2010 11:40 am
by frankmoss
Dont bother, I found it.

Re: Problems with XUpdate

Posted: Fri Nov 19, 2010 12:19 pm
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