2011-10-11 13:51:28 |
Federico Cavalieri |
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 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> |
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> |
|