[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: tomcat web server and dynamic XSL

Subject: RE: tomcat web server and dynamic XSL
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 29 Apr 2004 08:58:07 +0100
tomcat thread safe
> 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:  tomcat web server and dynamic XSL
> 
> 
>             Templates pss = tryCache(style);
>             Transformer transformer = pss.newTransformer();
>             Properties details = pss.getOutputProperties();

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.