diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-12-21 12:21:17 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-12-21 12:21:17 +0000 |
commit | 6d8811b0de03cc931435c6a4b0a15ea2fb86c1ea (patch) | |
tree | d2d0b75f9d874879287dfa083f00f10f82875536 /xsltproc | |
parent | de541422eb6b8b196538e367fd9d140b9b9829d5 (diff) | |
download | libxslt-6d8811b0de03cc931435c6a4b0a15ea2fb86c1ea.tar.gz libxslt-6d8811b0de03cc931435c6a4b0a15ea2fb86c1ea.tar.bz2 libxslt-6d8811b0de03cc931435c6a4b0a15ea2fb86c1ea.zip |
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
Diffstat (limited to 'xsltproc')
-rw-r--r-- | xsltproc/xsltproc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 /* |