fix bug #120828 make sure that xsl:sort is empty. Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Fri, 31 Oct 2003 19:27:09 +0000 (19:27 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Fri, 31 Oct 2003 19:27:09 +0000 (19:27 +0000)
* libxslt/preproc.c: fix bug #120828 make sure that xsl:sort is
  empty.
Daniel

ChangeLog
libxslt/preproc.c

index 8a3eaea..5944dab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Oct 31 20:26:04 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/preproc.c: fix bug #120828 make sure that xsl:sort is
+         empty.
+
 Fri Oct 31 15:53:45 CET 2003 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/documents.c libxslt/imports.c libxslt/xslt.c libxslt/xslt.h
index c6a1347..0d63f9e 100644 (file)
@@ -296,7 +296,6 @@ static void
 xsltSortComp(xsltStylesheetPtr style, xmlNodePtr inst) {
     xsltStylePreCompPtr comp;
 
-
     if ((style == NULL) || (inst == NULL))
        return;
     comp = xsltNewStylePreComp(style, XSLT_FUNC_SORT);
@@ -371,6 +370,11 @@ xsltSortComp(xsltStylesheetPtr style, xmlNodePtr inst) {
                         comp->select);
        if (style != NULL) style->errors++;
     }
+    if (inst->children != NULL) {
+       xsltTransformError(NULL, style, inst,
+       "xsl:sort : is not empty\n");
+       if (style != NULL) style->errors++;
+    }
 }
 
 /**