+Fri Dec 1 23:02:27 HKT 2006 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c: fixed problem with housekeeping of
+ localRVTBase, bug #378766
+
Wed Nov 29 16:06:43 CET 2006 Daniel Veillard <daniel@veillard.com>
* NEWS configure.in doc//*: preparing release of libxslt-1.1.19
cur = (xmlDocPtr) cur->next;
if (tmp == ctxt->localRVT)
- ctxt->localRVT = (xmlDocPtr) tmp->next;
+ ctxt->localRVT = cur;
/*
* We need ctxt->localRVTBase for extension instructions
* which return values (like EXSLT's function).
*/
if (tmp == ctxt->localRVTBase)
- ctxt->localRVTBase = (xmlDocPtr) tmp->next;
+ ctxt->localRVTBase = cur;
if (tmp->prev)
tmp->prev->next = (xmlNodePtr) cur;
do {
tmp = curdoc;
curdoc = (xmlDocPtr) curdoc->next;
+ /* Need to housekeep localRVTBase */
+ if (tmp == ctxt->localRVTBase)
+ ctxt->localRVTBase = curdoc;
xsltReleaseRVT(ctxt, tmp);
} while (curdoc != oldLocalFragmentTop);
}