Adjacent text nodes after update
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Medium
|
Markos Zaharioudakis |
Bug Description
Adjacent text nodes can be obtained after an XQU update.
In the following query the adjacent text nodes "a-b" and "b-c" should be merged but they are not.
variable $doc:=<
variable $a:=();
variable $b:=();
$a:=count(
replace node $doc/b with ();
$b:=count(
trace($doc,"dump");
<result>rep-empty: before: {$a}, after: {$b}, expected {$a - 1}</result>
Result:
<?xml version="1.0" encoding="UTF-8"?>
dump [0]: <root-elem nid="50| 1.1"><text nid="5a| 1.1.3">
<text nid="5d|80| 1.1.7">
<c-elem nid="5e|50| 1.1.13"
<result>rep-empty: before: 5, after: 5, expected 4</result>