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):-
> 
> 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.

  Okay i fixed this in CVS. Basically global variables are now
only read from the stylesheet and copied/evaluated within a hash table
in the transformatio context. It significantly improved cleanness 
by making the stylesheet read only and the speed by avoiding walking
a possibly long list (very long in the case of DocBook stylesheets).

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

  I think the patch won't be useful anymore but I keep it as a safety.

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]