You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/11/12 00:14:20 UTC
DO NOT REPLY [Bug 4800] New: -
Misleading exception message in Starter
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4800>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4800
Misleading exception message in Starter
Summary: Misleading exception message in Starter
Product: Fop
Version: all
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: general
AssignedTo: fop-dev@xml.apache.org
ReportedBy: elharo@metalab.unc.edu
In org.apache.fop.apps.Starter, the setParserFeatures() method
is as follows:
public void setParserFeatures(XMLReader parser) throws FOPException {
try {
parser.setFeature("http://xml.org/sax/features/namespace-prefixes",
true);
} catch (SAXException e) {
throw new FOPException("Error in setting up parser feature namespace-prefixes\n"
+ "You need a parser which supports SAX version 2", e);
}
}
The exception message is potentially incorrect and misleading.
While all SAX2 parsers must recognize the
http://xml.org/sax/features/namespace-prefixes property, they are
*not* required to support a true value for this property. The
default is false, and that is all a SAX2 parser is required to
support. A more appropriate error message would be:
"You need a parser which allows the
http://xml.org/sax/features/namespace-prefixes feature to be set
to true"
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org