[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Suggestions to use Transformer concurrently
> Would anyone suggest how to use Transformer concurrently? > I have read a O'Reilly and it suggests that one should use > Template class to > hold the xslt and then create a new instance of Transformer > to every client. Yes, that's what you should do. Compile the stylesheet once into a Templates object, then use it to create a new Transformer for each transformation, in a different thread if you want. In principle you can reuse the Transformer once a transformation is finished, but I wouldn't recommend it. You are certainly NOT allowed to run several transform() methods in different threads using the same Transformer object. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|