1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

--xinclude should also force XInclude processing on the stylesheets

* xsltproc/xsltproc.c: --xinclude should also force XInclude
  processing on the stylesheets themselves, raised by Daniel Leidert
Daniel
This commit is contained in:
Daniel Veillard
2006-08-16 15:33:13 +00:00
parent 90d4f40019
commit c73d033283
2 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Wed Aug 16 17:39:04 CEST 2006 Daniel Veillard <daniel@veillard.com>
* xsltproc/xsltproc.c: --xinclude should also force XInclude
processing on the stylesheets themselves, raised by Daniel Leidert
Thu Aug 10 15:54:02 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net Thu Aug 10 15:54:02 CEST 2006 Kasimier Buchcik <libxml2-cvs@cazic.net
* libxslt/transform.c libxslt/variables.c * libxslt/transform.c libxslt/variables.c

View File

@ -777,6 +777,18 @@ main(int argc, char **argv)
style = xmlReadFile((const char *) argv[i], NULL, options); style = xmlReadFile((const char *) argv[i], NULL, options);
if (timing) if (timing)
endTimer("Parsing stylesheet %s", argv[i]); endTimer("Parsing stylesheet %s", argv[i]);
if (style != NULL) {
if (timing)
startTimer();
#if LIBXML_VERSION >= 20603
xmlXIncludeProcessFlags(style, XSLT_PARSE_OPTIONS);
#else
xmlXIncludeProcess(style);
#endif
if (timing) {
endTimer("XInclude processing %s", argv[i]);
}
}
if (style == NULL) { if (style == NULL) {
fprintf(stderr, "cannot parse %s\n", argv[i]); fprintf(stderr, "cannot parse %s\n", argv[i]);
cur = NULL; cur = NULL;