On Thu, Jul 13, 2006 at 01:03:03PM +0200, Buchcik, Kasimier wrote: > Hi, > > Is the transformation context intended for reuse with > different stylesheets?
Hum, I didn't expect that. > I just wonder, since the context to use for a > transformation can be created and specified on the user's > side. > With xsltApplyStylesheetUser() one can specify the > transformation context to be used. With > xsltNewTransformContext() a context can be created. > But since > xsltNewTransformContext(xsltStylesheetPtr style, xmlDocPtr doc) > takes a specific @style (crashes if @style is NULL) this > looks more like the mechanism is only intended for one specific > stylesheet; so just to have a way of accessing the transformation > context before the transformation. But _not_ intended for > reuse with other stylesheets. > Is this observation correct? Yes, that matches my recollection. > If not (if the context _is_ intended for resue), then there > should be some problems with the string dict, since a reference > is set in xsltNewTransformContext() to the stylesheet's dict > and only released when the transformation context is freed. > > However, it seems that the transformation context can be reused > for multiple transformations with different source docs, right? Possibly, in which case they have well initialized dictionnary, but those multiple transformations should not be done in parallel of course and I don't think I ever really tested this, there may be some problems. Daniel -- Daniel Veillard | Red Hat http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xslt mailing list, project page http://xmlsoft.org/XSLT/ [email protected] http://mail.gnome.org/mailman/listinfo/xslt
