Subject: RE: [xsl] XTDE1490 and using the Saxon transformer multiple times From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Tue, 26 Jun 2007 17:30:19 +0100 |
> 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/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XTDE1490 and using the Sa, Norman Gray | Thread | Re: [xsl] XTDE1490 and using the Sa, Andrew Welch |
RE: [xsl] <quote>XSL is NOT easy</q, Michael Kay | Date | [xsl] Breaking lines in text files , Giovani Librelotto |
Month |