XQuery Update Facilities with Saxon-XQJ
Added by Anonymous over 15 years ago
Legacy ID: #7146762 Legacy Poster: Jens Schumann (schumajs)
Hi, I would like to use XQuery Update Facilities with Saxon-XQJ. The problems is that Saxon could not recognize insert, delete, etc. statements. It always gives me an error like "Unexpected token "insert nodes" in path expression". I already switched the tree model to "linkedTree" but that alone does not seem to work. XQueryCompiler provides a method called "setUpdatingEnabled(boolean updating)". Could it be that I have to set the latter? If so how do I reach XQueryCompiler starting from a SaxonXQDataFactory, respectively is there another way to enable XQuery Update Facilities with Saxon-XQJ? Thanks for an answer, Jens
Replies (3)
Please register to reply
RE: XQuery Update Facilities with Saxon-XQJ - Added by Anonymous over 15 years ago
Legacy ID: #7152257 Legacy Poster: Michael Kay (mhkay)
Generally I have avoided making any Saxon-specific extensions to the XQJ interface; XQJ does not yet provide an interface to XQuery update, and I think it would be better to avoid anticipating the eventual form of this interface (the only reason to use XQJ, in my view, is to achieve interoperability between Saxon and other processors). If you want an API to Saxon's implementation of XQuery update I think it would be better to use the s9api interface.
RE: XQuery Update Facilities with Saxon-XQJ - Added by Anonymous over 15 years ago
Legacy ID: #7152900 Legacy Poster: Jens Schumann (schumajs)
Thanks for the quick answer, although it wasn't pretty much what I hoped to hear ;-). The reason why I need to use XQJ is actually interoperability, but interoperability between XQuery Update capable processors. So, it seems that I have to look out for another option. Best Regards, Jens
RE: XQuery Update Facilities with Saxon-XQJ - Added by Anonymous over 15 years ago
Legacy ID: #7155050 Legacy Poster: Michael Kay (mhkay)
Given the pace at which XQJ is moving, I think it will be 20 years before we see a version that supports XQuery Update. Apparently the delays are all down to corporate lawyers trying to score points off each other. Seems to be the plague of the US software industry.
Please register to reply