1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

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
This commit is contained in:
Daniel Veillard
2003-12-21 12:21:17 +00:00
parent de541422eb
commit 6d8811b0de
34 changed files with 196 additions and 85 deletions

View File

@ -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
/*