RE: [xslt] Re-use of parsed stylesheet



Somewhat related to this issue, does anybody know if
there is a problem caching multiple "compiled" stylesheet
in memory, and select the appropriate stylesheet depending
on the XML document being processed?

- Tak Sze

> -----Original Message-----
> From: William M. Brack [mailto:wbrack@mmm.com.hk]
> Sent: Wednesday, May 16, 2001 2:20 AM
> To: xslt@gnome.org
> Subject: [xslt] Re-use of parsed stylesheet
> 
> 
> We have discovered two problems with calling xsltParseStylesheetFile,
> followed by multiple calls of xsltApplyStylesheet (using different
> documents):-
> 
> 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.
> 
> A proposed patch (against libxslt-0.9.0) is attached.
> 
> Bill Brack
> ABC QuickSilver
> 
> 
> _______________________________________________
> xslt mailing list
> xslt@gnome.org
> http://mail.gnome.org/mailman/listinfo/xslt
> 





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