This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Processing a huge XML document


> 	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:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]