Page 1 of 1
					
				XQuery Update
				Posted: Sun Dec 14, 2008 2:24 pm
				by nikolayo
				Hi,
Saxon-SA (included in oXygen 10) already supports XQuery Update.
Is oXygen going to support it too? When?
Regards
Nikolay
			 
			
					
				Re: XQuery Update
				Posted: Tue Dec 16, 2008 11:21 am
				by stefan
				The support for XQuery Update is scheduled for one of the minor releases of the actual version 10.
			 
			
					
				Re: XQuery Update
				Posted: Tue Mar 10, 2009 3:37 pm
				by mflat
				It would be great if this was enabled in oXygen soon.
Thanks!
Markus Flatscher
			 
			
					
				Re: XQuery Update
				Posted: Tue Jun 30, 2009 7:33 pm
				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
			 
			
					
				Re: XQuery Update
				Posted: Fri Jul 03, 2009 11:56 am
				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
 
			
					
				Re: XQuery Update
				Posted: Sat Jul 04, 2009 1:04 am
				by nikolayo
				The fix works for me. Thank you.
Regards
Nikolay
			 
			
					
				Re: XQuery Update
				Posted: Sun Sep 06, 2009 10:22 pm
				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
 
			
					
				Re: XQuery Update
				Posted: Mon Sep 07, 2009 12:39 pm
				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
			 
			
					
				Re: XQuery Update
				Posted: Tue Sep 08, 2009 1:58 am
				by joewiz
				Thanks, Sorin.  That's good to know.  I'll look out for a future update on this issue.
			 
			
					
				Re: XQuery Update
				Posted: Fri Sep 18, 2009 11:16 am
				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
 
			
					
				Re: XQuery Update
				Posted: Fri Sep 18, 2009 4:38 pm
				by joewiz
				Great, thanks so much, Sorin!