summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <nomeata@debian.org>2009-08-23 14:58:13 +0200
committerDaniel Veillard <veillard@redhat.com>2009-08-23 14:58:13 +0200
commitae2380fe2756523d166364a4c0e02fee39b8bec9 (patch)
treec92d996dbbce7f50dd1b93c76f68653ddfb2944f
parent2bb1fe4dfabc28f6d94fce165e50bc35370aea71 (diff)
downloadlibxslt-ae2380fe2756523d166364a4c0e02fee39b8bec9.tar.gz
libxslt-ae2380fe2756523d166364a4c0e02fee39b8bec9.tar.bz2
libxslt-ae2380fe2756523d166364a4c0e02fee39b8bec9.zip
567192 xsltproc --output option ignore --xinclude
* xsltproc/xsltproc.c: the option was not activating XInclude nor passing parser flags
-rw-r--r--xsltproc/xsltproc.c5
1 files changed, 5 insertions, 0 deletions
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);