1
0
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:
William M. Brack
2007-01-11 19:12:45 +00:00
parent 40e7c29b35
commit e1b7da0c1f
6 changed files with 28 additions and 5 deletions

View File

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