posted 22 years ago
Hi there,
In zvon tutorial the following question has this answer 1,2,3,4 nodes.
Iam fine with 2,3,4 nodes since they r preceding siblings,but 1st node <BBB> is the parent of <ccc/>. How come they r telling it's the preceding sibling. Plz clarify me.
//CCC/preceding-sibling::*
<AAA>
<BBB> ------- 1
<CCC/>
<DDD/>
</BBB> ------
<XXX> ------- 4
<DDD>
<EEE/> ----------2
<DDD/> ----------3
<CCC/>
<FFF/>
<FFF>
<GGG/>
</FFF>
</DDD>
</XXX> -----------
<CCC>
<DDD/>
</CCC>
</AAA>
Thanks
shakthy