diff options
Diffstat (limited to 'xsltproc/xsltproc.c')
-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 /* |