[libxslt] Change version number in xsl:version warning



commit a8ad51d20ff01042f7c0c1a8e34f8c14e5ee3ef1
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sun Jul 3 15:04:00 2016 +0200

    Change version number in xsl:version warning
    
    Change version number to 1.1 in xsl:version warning as suggested
    by François Melchior in bug #677901:
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677901#c3

 libxslt/xslt.c            |    2 +-
 tests/REC/test-2.5-1.err  |    2 +-
 tests/general/bug-175.err |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index 55c7b7e..88d3798 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -6053,7 +6053,7 @@ xsltParseStylesheetTop(xsltStylesheetPtr style, xmlNodePtr top) {
        if ((!xmlStrEqual(prop, (const xmlChar *)"1.0")) &&
             (!xmlStrEqual(prop, (const xmlChar *)"1.1"))) {
            xsltTransformError(NULL, style, top,
-               "xsl:version: only 1.0 features are supported\n");
+               "xsl:version: only 1.1 features are supported\n");
            if (style != NULL) {
                 style->forwards_compatible = 1;
                 style->warnings++;
diff --git a/tests/REC/test-2.5-1.err b/tests/REC/test-2.5-1.err
index 85545ea..141a101 100644
--- a/tests/REC/test-2.5-1.err
+++ b/tests/REC/test-2.5-1.err
@@ -1,2 +1,2 @@
 compilation error: file ./test-2.5-1.xsl line 2 element stylesheet
-xsl:version: only 1.0 features are supported
+xsl:version: only 1.1 features are supported
diff --git a/tests/general/bug-175.err b/tests/general/bug-175.err
index aea747a..61f2edc 100644
--- a/tests/general/bug-175.err
+++ b/tests/general/bug-175.err
@@ -1,2 +1,2 @@
 compilation error: file ./bug-175.xsl line 5 element transform
-xsl:version: only 1.0 features are supported
+xsl:version: only 1.1 features are supported


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]