RE: RE: [xsl] Best Practice - collection() function

Subject: RE: RE: [xsl] Best Practice - collection() function
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 7 Jul 2008 13:43:23 +0100
> In jaxp terms, is the compiled stylesheet the 
> (javax.xml.transform.) Templates or the Transformer object?

The Templates object
> 
> And for the document tree, that would exist just for the 
> duration of the transformation, right?
> 
Yes, unless you build the document tree yourself and use it as input to
multiple transformations.

If you use the same document tree several times with the same compiled
stylesheet (perhaps with different parameters) then the indexes are only
built once.

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

Current Thread