[libxslt] Fix forwards compatibility for imported stylesheets
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Fix forwards compatibility for imported stylesheets
- Date: Sun, 3 Jul 2016 14:13:54 +0000 (UTC)
commit 3300b01fc229855100610e4e8ef272b2af6c77f3
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Sun Jul 3 15:06:33 2016 +0200
Fix forwards compatibility for imported stylesheets
libxslt/xslt.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libxslt/xslt.c b/libxslt/xslt.c
index 88d3798..d41a98d 100644
--- a/libxslt/xslt.c
+++ b/libxslt/xslt.c
@@ -6423,10 +6423,11 @@ xsltParseStylesheetProcess(xsltStylesheetPtr ret, xmlDocPtr doc) {
"xsltParseStylesheetProcess : document is stylesheet\n");
#endif
- if (!xmlStrEqual(prop, (const xmlChar *)"1.0")) {
+ if ((!xmlStrEqual(prop, (const xmlChar *)"1.0")) &&
+ (!xmlStrEqual(prop, (const xmlChar *)"1.1"))) {
xsltTransformError(NULL, ret, cur,
- "xsl:version: only 1.0 features are supported\n");
- /* TODO set up compatibility when not XSLT 1.0 */
+ "xsl:version: only 1.1 features are supported\n");
+ ret->forwards_compatible = 1;
ret->warnings++;
}
xmlFree(prop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]