Hi all,
I need to translate my xml data to a new XML file wuth XSLT. I thought I had it, but I only got first row.
Need help to write the XSLT.
I have XML data exported from access: (using XSLT - to get my file)
- <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="gre.xsd" generated="2011-03-13T22:08:05">
- <gre>
<ARTNR>A12/640</ARTNR>
<Aktuellt>2</Aktuellt>
</gre>
- <gre>
<ARTNR>BD2000</ARTNR>
<Aktuellt>5</Aktuellt>
</gre>
- <gre>
<ARTNR>BD2005</ARTNR>
<Aktuellt>7</Aktuellt>
</gre>
- <gre>
<ARTNR>BD3100</ARTNR>
<Aktuellt>1</Aktuellt>
</gre>
- <gre>
<ARTNR>BD4000</ARTNR>
<Aktuellt>1</Aktuellt>
</gre>
</dataroot>
Need to get <artnr> and <aktuellt> data in the "row element" - to this get a xml like this xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <xmlimexport>
- <customers>
<atKunder key="100" option="noedit" />
</customers>
- <orders>
- <order>
- <atOrder customerkey="100">
<OOI_HEAD_CUSTOMER_NUMBER>100</OOI_HEAD_CUSTOMER_NUMBER>
</atOrder>
- <rows>
- <row>
<OOI_ROW_ARTICLE_NUMBER>A12/640H9700</OOI_ROW_ARTICLE_NUMBER>
<OOI_ROW_QUANTITY2>2</OOI_ROW_QUANTITY2>
</row>
- <row>
<OOI_ROW_ARTICLE_NUMBER>BD2000</OOI_ROW_ARTICLE_NUMBER>
<OOI_ROW_QUANTITY2>5</OOI_ROW_QUANTITY2>
**All data from xml**
</row>
</rows>
</order>
</orders>
</xmlimexport>
Im's sute you know to writ ths XSLT correct.
Thank you for the help.