
May 11th, 2003, 10:36 PM
|
|
Junior Member
|
|
Join Date: May 2003
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
XSLT Help: Compare values of two elements located in two different tags using loop
Can somebody help me please. Below is what I have in my XML file.
<A>
<B>
<C>123</C>
<D>abc</D>
</B>
<B>
<C>123</C>
<D>abc</D>
</B>
<B>
<C>123</C>
<D>abc</D>
</B>
</A>
I want to compare value of C tag in 1st B tag with value of C tag in 2nd B tag and then display values of B tag accordingly. Then compare values of C tag in 2nd B tag with value of C tag in 3rd B tag and so on. I tried a lot but couldn't do it. I would be glad if someone could help me.
Last edited by gupta_arunesh : May 11th, 2003 at 10:44 PM.
|