trying to fix an extension regression pointed out on the list. Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Wed, 18 Feb 2004 10:41:21 +0000 (10:41 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Wed, 18 Feb 2004 10:41:21 +0000 (10:41 +0000)
* libxslt/transform.c: trying to fix an extension regression pointed
  out on the list.
Daniel

ChangeLog
libxslt/transform.c

index 6de740b..07122ff 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Feb 18 11:40:23 CET 2004 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/transform.c: trying to fix an extension regression pointed
+         out on the list.
+
 Tue Feb 17 12:20:26 CET 2004 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/transform.c: try to fix the problem with yelp
index 08fae2e..1deffbd 100644 (file)
@@ -3145,12 +3145,15 @@ xsltApplyTemplates(xsltTransformContextPtr ctxt, xmlNodePtr node,
                */
                if ((list != NULL) && (ctxt->document->keys != NULL)) {
                    if ((list->nodeNr != 0) &&
+                       (list->nodeTab[0]->doc != NULL) &&
                        (xmlStrEqual((xmlChar *)list->nodeTab[0]->doc->name,
                           (const xmlChar *) " fake node libxslt")) &&
                        (list->nodeTab[0]->doc->_private == NULL)) {
                        newDocPtr = xsltNewDocument(ctxt, 
                               list->nodeTab[0]->doc);
                        if (newDocPtr == NULL) {
+                           xsltTransformError(ctxt, NULL, inst,
+                   "xsltApplyTemplates : failed to allocate subdoc\n");
                        }
                        list->nodeTab[0]->_private = (xmlNodePtr)newDocPtr;
                        ctxt->document = newDocPtr;