XPath expression has unexpected result
Bug #872288 reported by
Federico Cavalieri
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Critical
|
Markos Zaharioudakis |
Bug Description
Consider the following query
variable $x:=<y><a/></y>;
insert node <b/> into $x/a;
rename node $x/a/b as "a";
(
<ev>
{
$x
}
</ev>,
<first>
{
$x//a
}
</first>,
<correct>
{
$x//*
}
</correct>
)
All nodes seem to have the isRecursive flag set to false , thus this query returns:
<ev>
<y>
<a>
<a/>
</a>
</y>
</ev>
<first> <--only 1 a element since the first a is marked as nonRecursive
<a>
<a/>
</a>
</first>
<correct> <--two a elements
<a>
<a/>
</a>
<a/>
</correct>
Changed in zorba: | |
assignee: | nobody → Markos Zaharioudakis (markos-za) |
importance: | Undecided → Critical |
summary: |
- XPath expression has unexpected result due to unset flag isRecursive + XPath expression has unexpected result (unset flag isRecursive?) |
summary: |
- XPath expression has unexpected result (unset flag isRecursive?) + XPath expression has unexpected result |
description: | updated |
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
milestone: | none → 2.2 |
Changed in zorba: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.