Say I have an xml that looks like so:
<Items>
<ItemType1>A</ItemType1>
<ItemValue1>100</ItemValue1>
<IteType2>B</ItemType2>
<ItemValue2>10</ItemValue2>
<ItemType3>C</ItemType3>
<ItemValue3>0</ItemValue3>
<ItemType4>D</ItemType4>
<ItemValue4>50</ItemValue4>
</Items>
And I'm interested in getting the content of ItemValueX where ItemTypeX value is C. In this case, I should be getting 0 (ItemType3 = C, ItemValue3 = 0)
I need to do this in XSLT.
So the end result might be something like:
<ChoosenItem>
<ItemType>C</ItemType>
<ItemValue>0</ItemValue>
</ChoosenItem>
Any idea?