This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XML Caching in Saxon ??
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: XML Caching in Saxon ??
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 28 Nov 2000 15:57:28 -0000
- Reply-To: xsl-list at mulberrytech dot com
> Is there anyway to cache the parsed DOM and
> pass the root node to the transform function within Saxon.
Use the Saxon Builder class to build the tree structure, and pass it into
the transformDocument() method to do the transformation, as often as you
like.
With Saxon 6.0, be aware of the rule that all documents participating in a
transformation must be built using the same NamePool.
Building the tree tends to be 30% - 50% of the total transformation time:
check by using the -t option - so the saving may not be enough for you. But
if the transformation is selecting a small part of the tree, the savings
could be much bigger.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list