Lists Home |
Date Index |
I'm in a situation where I need to parse some large documents, where the
first few elements are a preamble with various parameters and the end of the
document is a large list of entries.
Think of a mail merge, where the letter to be sent is defined first in the
mail merge xml, followed by numerous recipient entries, something like this:
...letter def goes here
What I was wondering was how Xalan handles the processing of such large
documents (say a million recipient entries) when the parser is using SAX?
More specifically, if I create global variables such as:
<xsl:variable name="letterTemplate" select="/mailmerge/letter"/>
<!-- process the recipient using $letterTemplate -->
Will the processing be incremental in nature, as SAX events are received by
Xalan? That is, is Xalan smart enough to create the global as soon as it
can, followed by processing of each individual recipient as each related SAX
event is received? In that case, having the shared global info early in the
document and the large list at the end would probably have beneficial
Or will the whole document have to be instantiated as some sort of internal
Hopefully, it's incremental in nature, since otherwise we might blow out
memory with such large documents.
Any insight into the implications of processing such large documents, using
globals, xslt stylesheet structure, impact of element ordering in the
document and the like would be very much appreciated.
Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions