Fixed xsltFindDocument to cater for Stylesheet as document
authorWilliam M. Brack <wbrack@src.gnome.org>
Mon, 23 Jul 2001 15:40:00 +0000 (15:40 +0000)
committerWilliam M. Brack <wbrack@src.gnome.org>
Mon, 23 Jul 2001 15:40:00 +0000 (15:40 +0000)
ChangeLog
libxslt/documents.c

index 3aae2b9..9257d60 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Jul 23 23:35:00 HKT 2001 William M. Brack <wbrack@mmm.com.hk>
+
+       * libxslt/documents.c enhancement to xsltFindDocument to
+         cater for the Matt Sergeant patch
+
 Mon Jul 23 09:32:27 MDT 2001 John Fleck <jfleck@inkstain.net>
 
        * updating libxslt tutorial to include param support
index 1dfd223..c9d4314 100644 (file)
@@ -238,6 +238,8 @@ xsltFindDocument (xsltTransformContextPtr ctxt, xmlDocPtr doc) {
            return(ret);
        ret = ret->next;
     }
+    if (doc==ctxt->style->doc)
+       return ctxt->style;
     return(NULL);
 }