mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +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:
@ -1,3 +1,8 @@
|
||||
Wed Mar 17 18:49:55 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* xsltproc/xsltproc.c: added check for state XSLT_STATE_STOPPED
|
||||
when output file is used (bug 137341)
|
||||
|
||||
Tue Mar 16 08:55:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* libxslt/xsltutils.c: corrected my error from bug 135938
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user