mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-08 21:42:07 +03:00
fixed some return code problems raised by Thomas Mauch Daniel
* xsltproc/xsltproc.c libxslt/xsltutils.c doc/xsltproc.xml: fixed some return code problems raised by Thomas Mauch Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
Thu May 2 11:08:22 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* xsltproc/xsltproc.c libxslt/xsltutils.c doc/xsltproc.xml:
|
||||||
|
fixed some return code problems raised by Thomas Mauch
|
||||||
|
|
||||||
Tue Apr 30 18:06:14 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
Tue Apr 30 18:06:14 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* libxslt/transform.c: don't allow adding an attribute to
|
* libxslt/transform.c: don't allow adding an attribute to
|
||||||
|
@@ -318,6 +318,7 @@
|
|||||||
<para>7: unsupported xsl:output method</para>
|
<para>7: unsupported xsl:output method</para>
|
||||||
<para>8: string parameter contains both quote and double-quotes</para>
|
<para>8: string parameter contains both quote and double-quotes</para>
|
||||||
<para>9: internal processing error</para>
|
<para>9: internal processing error</para>
|
||||||
|
<para>10: processing was stopped by a terminating message</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
|
||||||
|
@@ -161,6 +161,7 @@ xsltMessage(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr inst) {
|
|||||||
} else {
|
} else {
|
||||||
xsltGenericError(xsltGenericErrorContext,
|
xsltGenericError(xsltGenericErrorContext,
|
||||||
"xsl:message : terminate expecting 'yes' or 'no'\n");
|
"xsl:message : terminate expecting 'yes' or 'no'\n");
|
||||||
|
ctxt->state = XSLT_STATE_ERROR;
|
||||||
}
|
}
|
||||||
xmlFree(prop);
|
xmlFree(prop);
|
||||||
}
|
}
|
||||||
|
@@ -282,6 +282,8 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
|
|||||||
}
|
}
|
||||||
if (ctxt->state == XSLT_STATE_ERROR)
|
if (ctxt->state == XSLT_STATE_ERROR)
|
||||||
errorno = 9;
|
errorno = 9;
|
||||||
|
if (ctxt->state == XSLT_STATE_STOPPED)
|
||||||
|
errorno = 10;
|
||||||
xsltFreeTransformContext(ctxt);
|
xsltFreeTransformContext(ctxt);
|
||||||
if (timing) {
|
if (timing) {
|
||||||
if (repeat)
|
if (repeat)
|
||||||
@@ -605,6 +607,10 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
cur = xsltParseStylesheetDoc(style);
|
cur = xsltParseStylesheetDoc(style);
|
||||||
if (cur != NULL) {
|
if (cur != NULL) {
|
||||||
|
if (cur->errors != 0) {
|
||||||
|
errorno = 5;
|
||||||
|
goto done;
|
||||||
|
}
|
||||||
if (cur->indent == 1)
|
if (cur->indent == 1)
|
||||||
xmlIndentTreeOutput = 1;
|
xmlIndentTreeOutput = 1;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user