Re: [xslt] Re-use of parsed stylesheet



On Wed, May 16, 2001 at 05:20:25PM +0800, William M. Brack wrote:
> We have discovered two problems with calling xsltParseStylesheetFile,
> followed by multiple calls of xsltApplyStylesheet (using different
> documents):-

  Right i have seems the corruption but didn't got the time to find where
this was hidden.

> 1) For all user parameters presented to xsltApplyStylesheet, the variables
> are added to the global stylesheet variable list (xsltRegisterGlobalVariable
> called by xsltEvalUserParams) but never removed.
> 
> 2) Compiled XPath expressions (which are related to the document being
> processed) are retained in the stored variable information. After the first
> document has been processed and released, this causes a crash.

  Okay, thanks for the analysis !

> A proposed patch (against libxslt-0.9.0) is attached.

  Hum, forgotten it seems, but I do this a lot too :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]