1
0
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:
Daniel Veillard
2001-01-21 11:07:02 +00:00
parent 007037dd75
commit 935ed1d25f
10 changed files with 79 additions and 30 deletions

View File

@@ -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);
/*