XQuery Update, transform
Added by Anonymous about 16 years ago
Legacy ID: #5673456 Legacy Poster: Jesper Tverskov (jesper_tverskov)
I'm testing XQuery Update Facility in Saxon SA at Command Line, and I have insert, delete, replace and rename working, but not transform giving error message: test.xml <test> <a/> <b/> </test> XQuery for $e in doc("test.xml")/test return copy $je := $e modify delete node $je/a return $je Error SXUP0081: Node to be deleted is not an updateable node Query processing failed: Run-time errors were reported What have I misunderstood? Cheers Jesper Tverskov
Replies (3)
Please register to reply
RE: XQuery Update, transform - Added by Anonymous about 16 years ago
Legacy ID: #5676111 Legacy Poster: Michael Kay (mhkay)
Did you set -tree:linked on the command line?
RE: XQuery Update, transform - Added by Anonymous about 16 years ago
Legacy ID: #5677741 Legacy Poster: Jesper Tverskov (jesper_tverskov)
-tree:linked solved the problem but I have no idea why since the documentation says: http://www.saxonica.com/documentation/sourcedocs/choosingmodel.html "The choice should make no difference to the results of a transformation (except the order of attributes and namespace declarations) but only affects performance." Cheers, Jesper
RE: XQuery Update, transform - Added by Anonymous about 16 years ago
Legacy ID: #5677989 Legacy Poster: Michael Kay (mhkay)
Thanks for the pointer. That information clearly needs to be updated. Michael Kay
Please register to reply