#573769 xsltproc: exits successfully on stylesheet error

Package:
xsltproc
Source:
libxslt
Description:
XSLT 1.0 command line processor
Submitter:
"brian m. carlson"
Date:
2014-10-04 10:57:15 UTC
Severity:
normal
#573769#5
Date:
2010-03-13 19:50:07 UTC
From:
To:
lakeview ok % xsltproc \
         -o html/lot.001/lot.001-a.html \
         --param annotate 'true()' \
         --stringparam db.chunk.basename lot.001-a \
         --stringparam db.chunk.max_depth 0 --stringparam theme.icons.base_url ../../../../icons/hicolor/48x48/status/ --stringparam theme.icons.watermark.code ../../../../icons/hicolor/watermarks/watermark-code.png --param db.chunk.chunk_top 'false()' db2html.xsl lot.001.xml
error: file ../../xslt/docbook/common/db-label.xsl line 702 element number
xsltCompilePattern : failed to compile ' appendix                                     db:chapter '
error: file ../../xslt/docbook/common/db-label.xsl line 702 element number
xsltCompilePattern : failed to compile ' appendix                                     db:chapter '
Unmatched element: sidebar
error: file ../../xslt/docbook/common/db-label.xsl line 702 element number
xsltCompilePattern : failed to compile ' appendix                                     db:chapter '
bmc@lakeview:~/checkouts/yelp-xsl/test/testdocs
(2010-03-13/19:39:02)(pts/5)(ac+98%)(ok)
lakeview ok %

Notice that the latter prompt says "(ok)" and "lakeview ok", which means
that the program exited successfully.  xsltproc is documented to exit 5
in this case.  It is not *as* important to me that xsltproc exits with a
specific error code as that it exits unsuccessfully; I'm testing changes
to a set of stylesheets via a makefile and need failures to be fatal.

If you need the stylesheets and testcases, please see commit
6bbe97367ddc0916db02e8825ecc0af002080ac5 from
git://castro.crustytoothpaste.net/bmc/repo/yelp-xsl.git (branch
docbook5).

#573769#12
Date:
2014-10-04 10:56:02 UTC
From:
To:
This is essentially the following bug in the libxslt bug tracker:

https://bugzilla.gnome.org/show_bug.cgi?id=680954

Nick