XML file , need varying number of outputs files
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 49
- Joined: Fri Nov 11, 2005 10:19 am
XML file , need varying number of outputs files
Based on the source file which is an XML file, I need to create n number of output files using XSLT or other ideas. Does any one have experience doing that or can we not create files dynamically on the run based on the source data.
ALISO
Aliso,
could you read the XML file into a DataStage job and then split your incoming data into several streams in a transform stage and output each of those to a XML output file of the appropriate format?
could you read the XML file into a DataStage job and then split your incoming data into several streams in a transform stage and output each of those to a XML output file of the appropriate format?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 49
- Joined: Fri Nov 11, 2005 10:19 am
I can't think of a way to do that directly. I might approach this in a multi-pass system - the first pass gets all the possible file names into some list, then one more pass for each filename to filter the XML. Not necessarily efficient, but also not terribly complex to code.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 353
- Joined: Wed Apr 06, 2005 8:45 am
Hi Andrw,
Thanks for the thought and time. I did not get you when you say "the first pass gets all the possible file names into some list", so I am thinking, use a source XML Input Stage , then a XML Transformer and then ? how do I store the file names, basically the xslt will be generating different files itself.
Obviously new to this XSLT stuff ! Even though not efficient looks like an innovative idea
Thanks for the thought and time. I did not get you when you say "the first pass gets all the possible file names into some list", so I am thinking, use a source XML Input Stage , then a XML Transformer and then ? how do I store the file names, basically the xslt will be generating different files itself.
Obviously new to this XSLT stuff ! Even though not efficient looks like an innovative idea
Thanks,
Vinay
Vinay