RE: [xsl] Processing a huge XML document

Subject: RE: [xsl] Processing a huge XML document
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 30 Jul 2001 09:24:45 +0100
> 	I am quite puzzled as to which method would be faster
> to transform
> a 50 MB XML file: an XSLT, or using SAX call-backs.

If your transformation is serial, then a SAX application will certainly be
much faster, as you don't have to build the tree in memory (the tree for a
50Mb file will be vast).

You might like to look at Saxon's "preview mode" if you want an XSLT
solution, this essentially does an XSLT transform on one subtree at a time,
avoiding the need to build the complete tree in memory.

Mike Kay
Software AG

 XSL-List info and archive:

Current Thread