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 Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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