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:
@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user