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

added check for state XSLT_STATE_STOPPED when output file is used (bug

* xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED
  when output file is used (bug 137341)
This commit is contained in:
William M. Brack
2004-03-17 10:51:06 +00:00
parent 6b24dc9bde
commit 22570c760b
2 changed files with 8 additions and 1 deletions

View File

@ -424,7 +424,7 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
}
if (ctxt->state == XSLT_STATE_ERROR)
errorno = 9;
if (ctxt->state == XSLT_STATE_STOPPED)
else if (ctxt->state == XSLT_STATE_STOPPED)
errorno = 10;
xsltFreeTransformContext(ctxt);
if (timing) {
@ -488,6 +488,8 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
}
if (ctxt->state == XSLT_STATE_ERROR)
errorno = 9;
else if (ctxt->state == XSLT_STATE_STOPPED)
errorno = 10;
xsltFreeTransformContext(ctxt);
if (timing)
endTimer("Running stylesheet and saving result");