Multiple elements of the same name



I am new to xslt, help out in order to write xsl for below xml pattern. I want to show element having same name under nested elements.


Currently I am able to iterate over first Product/@Type, but it is giving me the values for inner Product tag also.



<?xml version="1.0" encoding="UTF-8"?>
<Products>
<Product Type="Item">
<Name>ABC</Name>
<Values>
<Value ID="1">8.00</Value>
<Value ID="2">8.00</Value>
<Value ID="3">0.18</Value>
</Values>
<Product Type="UID">
<Values>
<Value ID="4">8.00</Value>
<Value ID="5">8.00</Value>
<Value ID="6">0.18</Value>
</Values>
</Product>
</Product>
</Products>

No comments:

Post a Comment