The transformer caches both sources and compiled stylesheets. You could get around this by having a global instance of the transformer and using both compiled stylesheets and sources from that (application permitting of course), or you could extract code from XalanTransformer, or copy/hack up the thing to create a custom version.
I do the latter (the functions aren't virtual/members are private so it's not possible to derive and override), and cache both sources and stylesheets outside of the transformer object. I'm not aware of anything that says that parsed sources are thread safe; however I'm reasonably certain that if they are used in a read only fashion there shouldn't be a problem. (Someone please tell me if this isn't the case!) Mark > -----Original Message----- > From: Colin Paul Adams [mailto:[EMAIL PROTECTED] > Sent: 26 March 2003 21:26 > To: [email protected] > Subject: Portability of XalanTransformer::CompiledStylesheet? > > > I notice that XalanTransformer::ParsedSource is owned by the > transformer, and can't be used by another. > > Would I be right to assume that this restriction does NOT applied to > CompiledStylesheet, so they could be cached, for instance? > -- > Colin Paul Adams > Preston Lancashire > >
