On Wed, Jan 30, 2008 at 01:13:08PM -0500, Jason Viers wrote: > Same patch as before except without the spelling mistake. <_< > > Jason >
> --- libxslt/xslt.c.orig 2008-01-30 12:45:11.000000000 -0500 > +++ libxslt/xslt.c 2008-01-30 13:07:50.000000000 -0500 > @@ -6589,7 +6589,11 @@ > * xsltParseStylesheetDoc: > * @doc: and xmlDoc parsed XML > * > - * parse an XSLT stylesheet building the associated structures > + * parse an XSLT stylesheet, building the associated structures. doc > + * is kept as a reference within the returned stylesheet, so changes > + * to doc after the parsing will be reflected when the stylesheet > + * is applied, and the doc is automatically freed when the > + * stylesheet is closed. > * > * Returns a new XSLT stylesheet structure. > */ Okay, applied though it's a bit more complex than what you suggest. During the stylesheet compilation element in the XSLt namespace are compiled to give the stylesheet, so if you change such element after the compilation you get a redictable behaviour. if you just change text content which will just be copied in the transformation process then that should be safe (assuming the styleshseet is not in use in another thread of course). Thanks ! Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [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
