xsl-list
[Top] [All Lists]

RE: [xsl] XTDE1490 and using the Saxon transformer multiple times

2007-06-26 09:31:35
I want to transform a largeish number of XML instances (a few
thousand) at a time, and so want to avoid repeatedly 
recompiling the XSLT script.  I suppose an alternative would 
be to create a Template, and repeatedly create a Transformer 
from that.  That would be quite cheap, yes?

It's very important to reuse the Templates object, which is the result of
compiling the stylesheet. Reusing the Transformer, in the case of Saxon at
any rate, usually achieves very little. The main effect is that Saxon
retains the document pool - that is, documents loaded using the document()
function. This is a good thing if successive transformations load the same
documents using document(), and it's a bad thing if they don't.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--