xsl-list
[Top] [All Lists]

RE: tomcat web server and dynamic XSL

2004-04-29 00:58:07
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(_dot_)Pawson(_at_)rnib(_dot_)org(_dot_)uk 
[mailto:David(_dot_)Pawson(_at_)rnib(_dot_)org(_dot_)uk]
Sent: Tuesday, 27 April, 2004 6:03 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] tomcat web server and dynamic XSL


            Templates pss = tryCache(style);
            Transformer transformer = pss.newTransformer();
            Properties details = pss.getOutputProperties();



--+------------------------------------------------------------------
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>
--+--





<Prev in Thread] Current Thread [Next in Thread>