Hi Jacky, Please don't cc me on replies to the list -- you just end up sending me multiple messages. You cannot serialize a compiled stylesheet to a byte stream. It's not clear that reconstructing a stylesheet from a byte stream is that much faster than re-parsing it, so that functionality has never been implemented. There are several ways to do this: 1. Use an instance of a XalanTransformer to compile all of your stylesheets and keep the instance around for as long as you need the stylesheets. If you have multithreaded code, you'll need to serialize access to this instance when parsing stylesheets. When you're done with all the stylesheets, destroy the XalanTransformer instance. 2. Create the stylesheets yourself, without using a XalanTransformer instance. This is fairly easy to do -- just use the code in XalanTransformer as a model. When you're done with a stylesheet, you'll need to delete it yourself. In any case, you absolutely cannot do a memcpy of the object -- this is C++, and memcpy is not the way to copy objects. Hope that helps... Dave
RE: Save the XalanCompiledStylesheet Object
David N Bertoni/Cambridge/IBM Mon, 28 Oct 2002 15:04:34 -0800
- Save the XalanCompiledStylesheet Object Ho, Jacky
- Re: Save the XalanCompiledStylesheet Ob... David N Bertoni/Cambridge/IBM
- RE: Save the XalanCompiledStylesheet Ob... Ho, Jacky
- David N Bertoni/Cambridge/IBM
