0

i have this xml file

<DataArea>
<TB001I>
<IOCOD>aaa</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
<TB001I>
<IOCOD>bbb</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
<TB001I>
<IOCOD>ccc</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
</DataArea>

i would create 3 xml file each one like

<DataArea>
<TB001I>
<IOCOD>aaa</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
</DataArea>

<DataArea>
<TB001I>
<IOCOD>bbb</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
</DataArea>

<DataArea>
<TB001I>
<IOCOD>ccc</IOCOD>
<IODESC>desc</IODESC>
</TB001I>
</DataArea>

i'm new with XSLT i don't know how to iterate with xslt to extract each node and create a new xml file can you help me on that? thank you

dgilperez
  • 10,716
  • 8
  • 68
  • 96
zanza67
  • 223
  • 4
  • 20
  • What version of XSLT, and if 1.0 which XSLT processor are you using? – Ian Roberts Feb 17 '15 at 15:34
  • it is XSLT 1.0, what do you mean for which xslt processor – zanza67 Feb 17 '15 at 15:50
  • 1
    There's no standard way to send output to more than one destination in XSLT 1.0, so you need to use a processor-specific extension mechanism to achieve it. What tool or library are you using to execute the transformation? – Ian Roberts Feb 17 '15 at 16:17
  • See here how to find out which XSLT processor you are using: http://stackoverflow.com/questions/25244370/how-can-we-check-that-which-xslt-processor-uses-as-default-in-solr/25245033#25245033 – michael.hor257k Feb 17 '15 at 17:25

0 Answers0