XQuery Update

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

XQuery Update

Post by nikolayo » Sun Dec 14, 2008 2:24 pm

Hi,

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

Regards
Nikolay

stefan
Posts: 45
Joined: Wed Jan 08, 2003 9:43 am
Contact:

Re: XQuery Update

Post by stefan » Tue Dec 16, 2008 11:21 am

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 » Tue Mar 10, 2009 3:37 pm

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 » Tue Jun 30, 2009 7:33 pm

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: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache » Fri Jul 03, 2009 11:56 am

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 » Sat Jul 04, 2009 1:04 am

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 » Sun Sep 06, 2009 10:22 pm

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: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache » Mon Sep 07, 2009 12:39 pm

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 » Tue Sep 08, 2009 1:58 am

Thanks, Sorin. That's good to know. I'll look out for a future update on this issue.

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Re: XQuery Update

Post by sorin_ristache » Fri Sep 18, 2009 11:16 am

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 » Fri Sep 18, 2009 4:38 pm

Great, thanks so much, Sorin!

Post Reply