XQuery Update

Are you missing a feature? Request its implementation here.
nikolayo
Posts: 12
Joined: Sun Dec 14, 2008 2:17 pm

XQuery Update

Post by nikolayo »

Hi,

Saxon-SA (included in oXygen 10) already supports XQuery Update.
Is oXygen going to support it too? When?

Regards
Nikolay
stefan

Re: XQuery Update

Post by stefan »

The support for XQuery Update is scheduled for one of the minor releases of the actual version 10.
mflat
Posts: 7
Joined: Thu Dec 11, 2008 6:14 am

Re: XQuery Update

Post by mflat »

It would be great if this was enabled in oXygen soon.

Thanks!

Markus Flatscher
nikolayo
Posts: 12
Joined: Sun Dec 14, 2008 2:17 pm

Re: XQuery Update

Post by nikolayo »

Thank you very much for implementing XQuery Update support in 10.3.
Transform expressions ("copy - modify")do not seem to work. They
always fail with a message saying that node is not modifiable. Would
you mind telling us whether this is a "feature" of Saxon-SA or of the specific integration within Oxygen?

Example:

declare variable $target := <whatever>some text</whatever>;
copy $t := $target
modify rename node $t as "something"
return $t

Fails with message "Node to be renamed is not an updateable node".

Regards
Nikolay
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache »

Hello,

Thank you for reporting the problem. We fixed it and uploaded a new build on the Download page. Please reinstall Oxygen 10.3.


Regards,
Sorin
nikolayo
Posts: 12
Joined: Sun Dec 14, 2008 2:17 pm

Re: XQuery Update

Post by nikolayo »

The fix works for me. Thank you.

Regards
Nikolay
joewiz
Posts: 56
Joined: Fri Jun 06, 2008 8:05 pm

Re: XQuery Update

Post by joewiz »

I was just testing out XQuery Update in oXygen and came across this thread. Using build 2009090215, I tried the example:
nikolayo wrote:declare variable $target := <whatever>some text</whatever>;
copy $t := $target
modify rename node $t as "something"
return $t
But this fails for me with the following error:
SystemID: /Users/joe/Downloads/Untitled9.xquery
Severity: error
Description: Expression class net.sf.saxon.instruct.TraceExpression is not an updating expression
By the way, I was working in the XQuery Debugger window with Saxon-SA XQuery 9.1.0.7 selected as the Debugger engine.

I wonder if this is an XQuery error or an error with oXygen/Saxon?

Thanks for any suggestions,
Joe
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache »

Hello,

The query works correctly in the Editor perspective (just XQuery execution without debugging) but not in the XQuery Debugger. I think it is a bug in the Saxon SA processor. I reported it to Saxonica and we hope they will fix it soon.


Regards,
Sorin
joewiz
Posts: 56
Joined: Fri Jun 06, 2008 8:05 pm

Re: XQuery Update

Post by joewiz »

Thanks, Sorin. That's good to know. I'll look out for a future update on this issue.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache »

Hello joewiz,

Michael Kay fixed the problem on the Saxon 9.2 code branch. The current version is 9.2.0.2 so the fix will be included in the next Saxon 9 version that will be released by Saxonica. We will include that Saxon 9 version in Oxygen after Saxonica will release it.


Regards,
Sorin
joewiz
Posts: 56
Joined: Fri Jun 06, 2008 8:05 pm

Re: XQuery Update

Post by joewiz »

Great, thanks so much, Sorin!
Post Reply