Project

Profile

Help

Saxon-SA 9.1.0.1j: SXUP0081 when updating

Added by Anonymous almost 16 years ago

Legacy ID: #5081547 Legacy Poster: Wouter Cordewiner (wcordewiner)

Using Saxon-SA 9.1.0.1j. Executing the XUF query: replace value of node comment {"abc"} with "def" results in following error: SXUP0081: Target node of replace expression is not updateable If I read the XUF spec correctly, this should work?


Replies (4)

Please register to reply

RE: Saxon-SA 9.1.0.1j: SXUP0081 when updating - Added by Anonymous almost 16 years ago

Legacy ID: #5081621 Legacy Poster: Michael Kay (mhkay)

Currently the only supported tree model that is updateable is the "linked tree" model. The default tinytree model is not updateable. Please ensure when using XQuery update that the tree to be updated is built using the "linked tree" model.

RE: Saxon-SA 9.1.0.1j: SXUP0081 when updating - Added by Anonymous almost 16 years ago

Legacy ID: #5081644 Legacy Poster: Michael Kay (mhkay)

Ah, I see what's going on: when you create a free-standing comment, attribute, text, or processing-instruction node it will always be implemented as an instance of net.sf.saxon.om.Orphan, which is not updateable. I can't see any reason why anyone would want to do this in real life, but I guess for the sake of passing test cases, the answer is to add the necessary updating methods to the Orphan class.

RE: Saxon-SA 9.1.0.1j: SXUP0081 when updating - Added by Anonymous almost 16 years ago

Legacy ID: #5081703 Legacy Poster: Michael Kay (mhkay)

Logged as bug 2013495, patched in Subversion.

RE: Saxon-SA 9.1.0.1j: SXUP0081 when updating - Added by Anonymous almost 16 years ago

Legacy ID: #5095176 Legacy Poster: Wouter Cordewiner (wcordewiner)

The patch does indeed fix the issue. I agree this is not the most common use case ;-)

    (1-4/4)

    Please register to reply