[xquery-talk] Update bug?

Leo Studer leo.studer at varioweb.ch
Tue Oct 6 09:23:32 PDT 2015


I am using Oxygen 17.0 with Saxon EE as the xQuery Update processor.

I want to move an attribute one level deeper.

In the example I want to move att="att” from <a> to <b>

<?xml version="1.0" encoding="UTF-8"?>
<a att="att">

Here my code:

delete node doc("xml.xml")//@att,
insert node doc("xml.xml")//@att into doc("xml.xml")//b

Each of these two statements work correctly alone but when I try both together I get java.lang.NullPointerException.

Can anyone explain what happens here?

Thanks in advance

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://x-query.com/pipermail/talk/attachments/20151006/b1beb62f/attachment.html>

More information about the talk mailing list