From ae2380fe2756523d166364a4c0e02fee39b8bec9 Mon Sep 17 00:00:00 2001 From: Joachim Breitner Date: Sun, 23 Aug 2009 14:58:13 +0200 Subject: [PATCH] 567192 xsltproc --output option ignore --xinclude * xsltproc/xsltproc.c: the option was not activating XInclude nor passing parser flags --- xsltproc/xsltproc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index e665dffc..e978a63c 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -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);