mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-08 11:02:18 +03:00
More work, cleanups, HTML output:
- Makefile.am tests/Makefile.am tests/REC1/Makefile.am tests/REC2/Makefile.am tests/REC2/html.xml: added tests target too, added the HTML output test - libxmls/xsltutils.c: added HTML output - libxslt/xslt.c: check version on literal result used as templates - libxslt/transform.c: fixed an error in VERSION number - libxslt/templates.c: make sure generated nodes have doc and parent properly set Daniel
This commit is contained in:
@@ -866,7 +866,11 @@ xsltParseStylesheetDoc(xmlDocPtr doc) {
|
||||
"xsltParseStylesheetDoc : document is stylesheet\n");
|
||||
#endif
|
||||
|
||||
/* TODO: check the version */
|
||||
if (!xmlStrEqual(prop, (const xmlChar *)"1.0")) {
|
||||
xsltGenericError(xsltGenericErrorContext,
|
||||
"xsl:version: only 1.0 features are supported\n");
|
||||
TODO /* set up compatibility when not XSLT 1.0 */
|
||||
}
|
||||
xmlFree(prop);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user