mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-05 23:35:48 +03:00
removed a warning added xsltRunStylesheetUser() API needed to fix #78546
* libxslt/attributes.c: removed a warning * libxslt/transform.c libxslt/transform.h win32/libxslt.def.src: added xsltRunStylesheetUser() API needed to fix #78546 * xsltproc/xsltproc.c: second part of the fix #78546 Daniel
This commit is contained in:
@@ -331,7 +331,21 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
|
||||
|
||||
xmlFreeDoc(res);
|
||||
} else {
|
||||
xsltRunStylesheet(cur, doc, params, output, NULL, NULL);
|
||||
int ret;
|
||||
|
||||
ctxt = xsltNewTransformContext(cur, doc);
|
||||
if (ctxt == NULL)
|
||||
return;
|
||||
if (profile) {
|
||||
ret = xsltRunStylesheetUser(cur, doc, params, output,
|
||||
NULL, NULL, stderr, ctxt);
|
||||
} else {
|
||||
ret = xsltRunStylesheetUser(cur, doc, params, output,
|
||||
NULL, NULL, NULL, ctxt);
|
||||
}
|
||||
if (ctxt->state == XSLT_STATE_ERROR)
|
||||
errorno = 9;
|
||||
xsltFreeTransformContext(ctxt);
|
||||
if (timing)
|
||||
endTimer("Running stylesheet and saving result");
|
||||
xmlFreeDoc(doc);
|
||||
|
Reference in New Issue
Block a user