Incremental/streaming XSLT transformations?

JoeSchmuck

New Member
I'm normally using the XSLT support in the JDK (JDK 7) for XSLT transformations. Recently I've come across a rather large XML document, and applying XSLT transformations to this (even very basic ones) causes a lot of memory to be used.I've been careful to do all my processing streaming, but it seems the XSLT engine in the JDK (which appears to be a modified Xalan) always builds up a DOM in memory first. Obviously this is not what I want.Now I found out that the Xalan which is available separately (2.7.1 from 2007!) does have an API for doing incremental transformations. So while this does seem to work, I actually want my code to run on a stock JDK, without telling the user to fiddle with any endorsed folder.What is the best way to do incremental XSLT transformations in Java so that my code is compatible with unmodified/stock JDK installations?update:This recently updated question is strongly related: What is the Most Efficient Java-Based streaming XSLT Processor?
 
Back
Top