Subject: Looping a node in XSLT
From: Senthilkumaravelan Krishnanatham <senthil@xxxxxxxxx>
Date: Tue, 6 Mar 2007 15:29:23 -0800
|
Hi All,
I have requirement to loop through the node N number of times,
Is there any way I can accomplish in XSLT?
for example
<order>
<orderid>10</orderid>
<prod>
<productid>100</productid >
<productqty>200< productqty>
</prod>
</order>
Desired out put
<order>
<orderid>10</orderid>
<prod>
<productid>100</productid >
<productqty>200< productqty>
</prod>
<prod>
<productid>100</productid >
<productqty>200< productqty>
</prod>
<prod>
<productid>100</productid >
<productqty>200< productqty>
</prod>
... N times
</order>
Thanks,
Senthil
|