1
0
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:
Daniel Veillard
2002-04-15 15:30:21 +00:00
parent 00ce7dd814
commit 6ca5fcf67b
6 changed files with 98 additions and 31 deletions

View File

@@ -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);