[xslt] Re-use of parsed stylesheet
- From: "William M. Brack" <wbrack mmm com hk>
- To: <xslt gnome org>
- Subject: [xslt] Re-use of parsed stylesheet
- Date: Wed, 16 May 2001 17:20:25 +0800
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]