[libxslt] 567192 xsltproc --output option ignore --xinclude



commit ae2380fe2756523d166364a4c0e02fee39b8bec9
Author: Joachim Breitner <nomeata debian org>
Date:   Sun Aug 23 14:58:13 2009 +0200

    567192 xsltproc --output option ignore --xinclude
    
    * xsltproc/xsltproc.c: the option was not activating XInclude nor
      passing parser flags

 xsltproc/xsltproc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index e665dff..e978a63 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]