Namespace lost after update

Bug #867245 reported by Federico Cavalieri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Markos Zaharioudakis

Bug Description

In the following query the namespace binding on d,e,f are lost after the delete node operation evaluation.
I believe the problem is in detach.

variable $x:=<a><a1 xmlns="http://aaa.com" c1="d1"><d xmlns="http://ddd.com"/><e:e xmlns:e="http://eee"><f:f xmlns:f="f">g</f:f></e:e></a1></a>;
variable $z:=$x/*;
delete node $x/*;
$z

The query outputs:
<a1 xmlns="http://aaa.com" c1="d1"><d/><e:e><f:f>g</f:f></e:e></a1>

The query should output:
<a1 xmlns="http://aaa.com" c1="d1"><d xmlns="http://ddd.com"/><e:e xmlns:e="http://eee"><f:f xmlns:f="f">g</f:f></e:e></a1>

Tags: core-runtime
Changed in zorba:
status: Fix Released → Fix Committed
milestone: none → 2.1
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.