diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-08-16 15:33:13 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-08-16 15:33:13 +0000 |
commit | c73d033283287c0fff50575e178cbce2b6d0d707 (patch) | |
tree | 91ab153eb8b7831940b3b9a4269330d0cca59889 /xsltproc | |
parent | 90d4f40019950a9806e96e2e12134650daf717c7 (diff) | |
download | libxslt-c73d033283287c0fff50575e178cbce2b6d0d707.tar.gz libxslt-c73d033283287c0fff50575e178cbce2b6d0d707.tar.bz2 libxslt-c73d033283287c0fff50575e178cbce2b6d0d707.zip |
--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
Diffstat (limited to 'xsltproc')
-rw-r--r-- | xsltproc/xsltproc.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 2d8a9f44..7abee404 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -777,6 +777,18 @@ main(int argc, char **argv) style = xmlReadFile((const char *) argv[i], NULL, options); if (timing) 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) { fprintf(stderr, "cannot parse %s\n", argv[i]); cur = NULL; |