[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Convert a large file from XML to CSV
howard chen schrieb:
I am converting a very large XML file to CSV (e.g. GB in size which can't fit into memory), I am not sure if it is the correct way to use XSL to do my job.
In any case, I'd reuse any CSV writing functionality that is available instead of trying to handle that part in XSL. So I have a Perl script call an XSL transformation which then calls back into the host language to use the CSV writing functionality bundled with Perl. So the role of XSL in this scenario is ancillary: gather values and pass them to Perl. <xsl:value-of select="perl:to-csv( $filename, @ID, my/Title, ... )"/> Michael
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|