Project

Profile

Help

Bug #2465

closed

XQuery Update: moving an attribute

Added by Michael Kay about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
XQuery Update
Sprint/Milestone:
Start date:
2015-10-06
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6
Fix Committed on Branch:
9.6
Fixed in Maintenance Release:
Platforms:

Description

Leo Studer writes on :

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

I want to move an attribute one level deeper.

In the example I want to move att="att” from to

<b/>

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

Leo

Please register to edit this issue

Also available in: Atom PDF