567192 xsltproc --output option ignore --xinclude
authorJoachim Breitner <nomeata@debian.org>
Sun, 23 Aug 2009 12:58:13 +0000 (14:58 +0200)
committerDaniel Veillard <veillard@redhat.com>
Sun, 23 Aug 2009 12:58:13 +0000 (14:58 +0200)
* xsltproc/xsltproc.c: the option was not activating XInclude nor
  passing parser flags

xsltproc/xsltproc.c

index e665dff..e978a63 100644 (file)
@@ -461,6 +461,11 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
        ctxt = xsltNewTransformContext(cur, doc);
        if (ctxt == NULL)
            return;
+       xsltSetCtxtParseOptions(ctxt, options);
+#ifdef LIBXML_XINCLUDE_ENABLED
+       if (xinclude)
+           ctxt->xinclude = 1;
+#endif
        if (profile) {
            ret = xsltRunStylesheetUser(cur, doc, params, output,
                                        NULL, NULL, stderr, ctxt);