Red Hat Bugzilla – Bug 56649
useless xsltproc return code
Last modified: 2008-05-01 11:38:01 EDT
Description of Problem:
The return code of xsltproc is often zero even when there is an error.
Version-Release number of selected component (if applicable):
1. xsltproc no-file no-file; echo $?
2. xsltproc \
no-file; echo $?
There are many other cases too.
This makes it hard to use xsltproc from a script.
Okay I commited a fix to this. The list of xsltproc return
codes are now the following:
1: no argument
2: too many parameters
3: unknown option
4: failed to parse the stylesheet
5: error in the stylesheet
6: error in one of the documents
7: unsuppoted xsl:output method
I will push a package with this update soon,
Great, work fine. Thanks.
Okay, will close when John Fleck will have updated the man page
Okay next version will have complete fix and docs for this
The current rawhide has the fix