Wednesday, 28 August 2013

XSL - How can I compare 2 sets of nodes?

XSL - How can I compare 2 sets of nodes?

I have the following data
<parent>
<child>APPLES</child>
<child>APPLES</child>
<child>APPLES</child>
</parent>
<parent>
<child>APPLES</child>
<child>BANANA</child>
<child>APPLES</child>
</parent>
Is there a simple way to compare the parent nodes? Or will I have to nest
a for-each within a for-each and test every child manually with
position()?

No comments:

Post a Comment