Hi Shoba,
Your xml file is wrong. If you want the desired output, your xml file should be like this
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="order1.xsl"?>
<order number="312597">
<date>2000/1/1</date>
<!-- this is the customer A-->
<customer id="216A">Company A
<item>
<part-number warehouse="Warehouse 11">E16-25A</part-number>
<description>Production-class widget</description>
<quantity>16</quantity>
</item>
</customer>
<!-- this is the customer B-->
<customer id="216B">Company B
<item>
<part-number warehouse="Warehouse 12">E16-25B</part-number>
<description>Production-class widgetA</description>
<quantity>20</quantity>
</item>
</customer>
</order>
The problem is with your <customer> element. There is no loop in the <customer> element and your calling <xsl:for-each select="/order/customer[@id='216B']">, in your xml file. I have rectified the error. Please check it.
Thnx
Srikanth
divine India Ltd
Mail Id:
srikanth.vrudhula@divine.com