pit977
Technical User
- Feb 28, 2011
- 6
hi,
I would like to create xsl file to transform xml file #1 to another xml file #2 with different structure:
xml file #1:
<?xml version="1.0" encoding="utf-8" ?>
<orders>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<compound>
<name>Riboflavorific</name>
<amount>27</amount>
</compound>
<compound>
<name>Reduxicon</name>
<amount>90</amount>
</compound>
<compound>
<name>Photicuderm</name>
<amount>70</amount>
</compound>
</orders>
xml file #2:
<?xml version="1.0" encoding="utf-8" ?>
<orders>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Riboflavorific</name>
<amount>27</amount>
</compound>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Reduxicon</name>
<amount>90</amount>
</compound>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Photicuderm</name>
<amount>70</amount>
</compound>
</orders>
could You help me, please
I would like to create xsl file to transform xml file #1 to another xml file #2 with different structure:
xml file #1:
<?xml version="1.0" encoding="utf-8" ?>
<orders>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<compound>
<name>Riboflavorific</name>
<amount>27</amount>
</compound>
<compound>
<name>Reduxicon</name>
<amount>90</amount>
</compound>
<compound>
<name>Photicuderm</name>
<amount>70</amount>
</compound>
</orders>
xml file #2:
<?xml version="1.0" encoding="utf-8" ?>
<orders>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Riboflavorific</name>
<amount>27</amount>
</compound>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Reduxicon</name>
<amount>90</amount>
</compound>
<compound>
<doctorname>Andrew Dixon</doctorname>
<orderid>10/10/03</orderid>
<name>Photicuderm</name>
<amount>70</amount>
</compound>
</orders>
could You help me, please