hi,
i have a requirement that i need to receive a file,map it an as a result a need to split this files in many files of 64K as a limitation of the backed system (no comments )
i saw many XSLT examples that split the files by specific segment but i need a simulate in my PI7.1 the same functionality of pi 7.3 for file adapter where i can split a file in many files.
I was thinking about this kind of solution because the performace is better than java mapping. however it is not dicarded.
Example of file (lets assume it has a size of 130K)
<People>
<Person>
<name>John</name>
<date>June12</date>
<workTimetaskID="1">34</workTime>
<workTimetaskID="2">12</workTime>
</Person>
<Person>
<name>John</name>
<date>June13</date>
<workTimetaskID="1">21</workTime>
<workTimetaskID="2">11</workTime>
</Person>
<Person>
<name>Jack</name>
<date>June19</date>
<workTimetaskID="1">20</workTime>
<workTimetaskID="2">30</workTime>
</Person>
</People>
as a result y need to split the file into three
FILE1 (60K)
<People>
<Person>
<name>John</name>
<date>June12</date>
<workTimetaskID="1">34</workTime>
<workTimetaskID="2">12</workTime>
</Person>
<Person>
<name>John</name>
FILE2 (60K)
<date>June13</date>
<workTimetaskID="1">21</workTime>
<workTimetaskID="2">11</workTime>
</Person>
<Person>
<name>Jack</name>
<date>June19</date>
<workTimetaskID="1">20</workTime>
FILE3 (10K)
<workTimetaskID="1">20</workTime>
<workTimetaskID="2">30</workTime>
</Person>
</People>
SO as you can see i need to split the file but at the end when all the peaces comes together the final XML should be consistent
some examples:
http://www.abbeyworkshop.com/howto/xslt/xslt_split/
http://stackoverflow.com/questions/4169961/xslt-split-output-files-muenchian-grouping
...
...
...
hope it is clear