summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/preproc.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8a3eaead..5944dabf 100644
--- 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
diff --git a/libxslt/preproc.c b/libxslt/preproc.c
index c6a13474..0d63f9eb 100644
--- a/libxslt/preproc.c
+++ b/libxslt/preproc.c
@@ -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++;
+ }
}
/**