[libxslt] Fix error messages for unsupported methods



commit 569d72416e617fc18425049d4eb4c5d89062d8cf
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Mon Mar 28 15:29:33 2016 +0200

    Fix error messages for unsupported methods

 libxslt/transform.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/libxslt/transform.c b/libxslt/transform.c
index 8a6d727..8b86e2e 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -3714,8 +3714,7 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
            xmlDictReference(res->dict);
        } else if (xmlStrEqual(method, (const xmlChar *) "xhtml")) {
            xsltTransformError(ctxt, NULL, inst,
-            "xsltDocumentElem: unsupported method xhtml (%s)\n",
-                            style->method);
+            "xsltDocumentElem: unsupported method xhtml\n");
            ctxt->type = XSLT_OUTPUT_HTML;
            res = htmlNewDocNoDtD(doctypeSystem, doctypePublic);
            if (res == NULL)
@@ -3736,7 +3735,7 @@ xsltDocumentElem(xsltTransformContextPtr ctxt, xmlNodePtr node,
        } else {
            xsltTransformError(ctxt, NULL, inst,
                             "xsltDocumentElem: unsupported method (%s)\n",
-                            style->method);
+                            method);
            goto error;
        }
     } else {
@@ -5973,8 +5972,7 @@ xsltApplyStylesheetInternal(xsltStylesheetPtr style, xmlDocPtr doc,
 #endif
         } else if (xmlStrEqual(method, (const xmlChar *) "xhtml")) {
            xsltTransformError(ctxt, NULL, (xmlNodePtr) doc,
-               "xsltApplyStylesheetInternal: unsupported method xhtml (%s), using html\n",
-               style->method);
+               "xsltApplyStylesheetInternal: unsupported method xhtml, using html\n");
             ctxt->type = XSLT_OUTPUT_HTML;
             res = htmlNewDoc(doctypeSystem, doctypePublic);
             if (res == NULL)
@@ -6001,7 +5999,7 @@ xsltApplyStylesheetInternal(xsltStylesheetPtr style, xmlDocPtr doc,
         } else {
            xsltTransformError(ctxt, NULL, (xmlNodePtr) doc,
                "xsltApplyStylesheetInternal: unsupported method (%s)\n",
-               style->method);
+               method);
             goto error;
         }
     } else {


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