[oXygen-user] Xquery Update magic comment in Oxygen
Oxygen XML Editor Support
support at oxygenxml.com
Wed Apr 17 09:50:05 CDT 2013
Hi,
Thank you for letting us know about this.
I've investigated and it seems Oxygen has a faulty copy/modify detection
mechanism that triggers the linked tree tree model in the Saxon
configuration.
I have logged this to our issue tracking tool. This will be analyzed and
resolved in a future version of Oxygen.
Regards,
Adrian
Nicolas BUONOMO wrote:
>
> Oxygen version : <oXygen/> XML Editor 14.2, build 2013021115
> and Saxon EE version : Saxon EE 9.4.0.6
>
> Sorry I think is a mistake, I send you a old trace before I update to
> 14.2
>
> I redo it now, we are in the right version!
>
> Description
> Target node of insert expression is not updateable
> Severity
> Error
> System ID
> /home/nicolas/git-clones/xquery-dev/src/xquery-update/modify-copy-bugs/request.xquery
>
> Scenario
> saxon-EE 9.4.0.6
> XQuery file
> /home/nicolas/git-clones/xquery-dev/src/xquery-update/modify-copy-bugs/request.xquery
>
> Engine name
> Saxon-EE XQuery 9.4.0.6
> Additional info
> http://www.saxonica.com/documentation/javadoc/net/sf/saxon/trans/SaxonErrorCode.html#SXUP0081
>
>
>
>
> On 16/04/2013 14:35, Oxygen XML Editor Support wrote:
>> Hello,
>>
>> Could you please send us sample code with the XQuery update call
>> where this reproduces?
>>
>> Can you please check what version of Oxygen (Help > About) and Saxon
>> EE (Help > About, Libraries, Saxon EE)
>> are you using, because there seems to be an inconsistency here.
>> You've mentioned that you are using XML
>> Editor 14.2 which bundles Saxon 9.4.0.6. However, the Oxygen errors
>> you've included are reported by
>> Saxon-EE XQuery 9.4.0.4 (bundled with Oxygen v14.1).
>>
>> Regards,
>> Adrian
>>
>> Adrian Buza
>> oXygen XML Editor and Author Support
>>
>> Tel: +1-650-352-1250 ext.202
>> Fax: +40-251-461482
>> support at oxygenxml.com
>> http://www.oxygenxml.com
>>
>>
>> Nicolas BUONOMO wrote:
>>> Hi,
>>>
>>> I send you a some code to illustrate a strange behavior with Xquery
>>> update. The code is as simple as
>>> possible to illustrate my purpose. I’ve placed a Xquery update
>>> function in a Xquery module (module.xql),
>>> this function is then called from a query (request.xquery).
>>> when I execute this code within OxygenXml, it return me the error :
>>> Engine name: Saxon-EE XQuery 9.4.0.4
>>> Severity: error
>>> Description: Node to be deleted is not an updateable node
>>> URL:
>>> http://www.saxonica.com/documentation/javadoc/net/sf/saxon/trans/SaxonErrorCode.html#SXUP0081
>>>
>>> unless I add in the query a comment like (: copy modify :), in this
>>> case, the code work fine!
>>> I have tried to execute this sample from the Saxon command line :
>>> $ java -cp /usr/local/lib/oxygen-xml/lib/saxon9ee.jar
>>> net.sf.saxon.Query -update:on request.xquery
>>> No license file found - running with licensable features disabled
>>> Error
>>> SXUP0081: Target node of insert expression is not updateable
>>> at mod:transform-update-test()
>>> (file:/home/nicolas/git-clones/xquery-dev/src/xquery-update/modify-copy-bugs/request.xquery#4)
>>>
>>> Query processing failed: Run-time errors were reported
>>> I’ve got a error with or without the comment (: copy modify :), and
>>> the execution is ok when I had the
>>> option -tree:linked on the command line, with or without the comment.
>>>
>>> $ java -cp /usr/local/lib/oxygen-xml/lib/saxon9ee.jar
>>> net.sf.saxon.Query -update:on -tree:linked
>>> request.xquery
>>> No license file found - running with licensable features disabled
>>> <?xml version="1.0"
>>> encoding="UTF-8"?><modify-copy-bugs><hello>world</hello>
>>> </modify-copy-bugs>
>>>
>>> I work with Oxygen Version : XML Editor 14.2, build 2013021115 on
>>> Ubuntu 12.04.
>>>
>>> Regards,
>>>
>>> Nicolas BUONOMO
>>
>>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
--
Adrian Buza
oXygen XML Editor and Author Support
Tel: +1-650-352-1250 ext.202
Fax: +40-251-461482
support at oxygenxml.com
http://www.oxygenxml.com
More information about the oXygen-user
mailing list