From 6d8811b0de03cc931435c6a4b0a15ea2fb86c1ea Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 21 Dec 2003 12:21:17 +0000 Subject: fixed #129327 make sure parser flags get transmitted to the transformation * xsltproc.c: fixed #129327 make sure parser flags get transmitted to the transformation context * libxslt/documents.c libxslt/transform.c libxslt/xsltInternals.h libxslt/xsltutils.c libxslt/xsltutils.h: add a new call xsltSetCtxtParseOptions() to update parsing options in document() Daniel --- xsltproc/xsltproc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xsltproc') diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index b39e1c02..61313810 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -414,6 +414,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) { ctxt = xsltNewTransformContext(cur, doc); if (ctxt == NULL) return; + xsltSetCtxtParseOptions(ctxt, options); if (profile) { res = xsltApplyStylesheetUser(cur, doc, params, NULL, stderr, ctxt); @@ -749,6 +750,9 @@ main(int argc, char **argv) xmlLoadExtDtdDefaultValue = 0; xmlSubstituteEntitiesDefault(1); xmlLineNumbersDefault(1); +#else + if (novalid != 0) + options = XML_PARSE_NOENT | XML_PARSE_NOCDATA; #endif /* -- cgit v1.2.3