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:
@ -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;
|
||||
|
Reference in New Issue
Block a user