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: XML Caching in Saxon ??


> 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

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