RE: [xsl] tomcat web server and dynamic XSL

Subject: RE: [xsl] tomcat web server and dynamic XSL
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 29 Apr 2004 08:58:07 +0100
> Just curious, why do you cache the Template instead of the 
> Transformer?

The Templates object holds the compiled stylesheet, which is reusable and
thread-safe. The Transformer holds transient information used in the course
of a transformation, such as the stack and the dynamic context: it is not
thread-safe and there is usually no point in reusing it.

Michael Kay

 
> 
> Regards,
> Daniel
> 
> 
> -----Original Message-----
> From: David.Pawson@xxxxxxxxxxx [mailto:David.Pawson@xxxxxxxxxxx]
> Sent: Tuesday, 27 April, 2004 6:03 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: [xsl] tomcat web server and dynamic XSL
> 
> 
>             Templates pss = tryCache(style);
>             Transformer transformer = pss.newTransformer();
>             Properties details = pss.getOutputProperties();

Current Thread