I've the below type of XML structure
<root>
<Section>
<A></A>
<B></B>
<A></A>
</Section>
<Section>
<A></A>
<B></B>
<A></A>
</section>
</root>
Here under each section there are 2 tags namely A
and B
but also there are 2 A
nodes,
Here i want to check with XPATH(XSLT2.0) if there are any preceding A
under same Section
, when i used Preceding::A
, it is selecting everything i.e. it is not checking if it is in the same section or in different, but it is checking if there is a preceding A
, but i want to check for preceding A
in same Section
, please let me know how can i do this.
Thanks