mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-29 15:41:13 +03:00
enhanced to ignore empty text node in xsltDefaultProcessOneNode (avoid
* libxslt/transform.c: enhanced to ignore empty text node in xsltDefaultProcessOneNode (avoid calling xsltCopyText) (bug #354900) * xsltproc/xsltproc.c: added check for output file problem, yielding new error code 11 (Mike Hommey). * doc/xsltproc.html, doc/xsltproc.xml: added documentation for above, regenerated docs (doc/xlstproc.1) svn path=/trunk/; revision=1414
This commit is contained in:
@ -456,18 +456,20 @@ xsltProcess(xmlDocPtr doc, xsltStylesheetPtr cur, const char *filename) {
|
||||
|
||||
xmlFreeDoc(res);
|
||||
} else {
|
||||
|
||||
int ret;
|
||||
ctxt = xsltNewTransformContext(cur, doc);
|
||||
if (ctxt == NULL)
|
||||
return;
|
||||
if (profile) {
|
||||
xsltRunStylesheetUser(cur, doc, params, output,
|
||||
ret = xsltRunStylesheetUser(cur, doc, params, output,
|
||||
NULL, NULL, stderr, ctxt);
|
||||
} else {
|
||||
xsltRunStylesheetUser(cur, doc, params, output,
|
||||
ret = xsltRunStylesheetUser(cur, doc, params, output,
|
||||
NULL, NULL, NULL, ctxt);
|
||||
}
|
||||
if (ctxt->state == XSLT_STATE_ERROR)
|
||||
if (ret == -1)
|
||||
errorno = 11;
|
||||
else if (ctxt->state == XSLT_STATE_ERROR)
|
||||
errorno = 9;
|
||||
else if (ctxt->state == XSLT_STATE_STOPPED)
|
||||
errorno = 10;
|
||||
|
Reference in New Issue
Block a user