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=15079>. 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=15079 Bad QName not detected Summary: Bad QName not detected Product: Xerces2-J Version: 2.2.1 Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I am upgrading to Xerces 2 from Xerces 1. In the test suite for my product (an RDF parser), I include some ill-formed input. This was correctly detected (with spurious error message) by Xerces 1, but is treated incorrectly as legal by Xerces 2. Here is a transcript. $ java -cp xercesImpl.jar:xercesSamples.jar sax.Counter -n -np bad-bug67_1.rdf bad-bug67_1.rdf: 123 ms (2 elems, 2 attrs, 0 spaces, 13 chars) $ java -cp xerces.jar:xercesSamples.jar sax.Counter -n -np bad-bug67_1.rdf [Fatal Error] bad-bug67_1.rdf:13:15: An invalid second ':' was found in the element type or attribute name. Here is the file bad-bugs67_1.rdf <!-- Failing (not RDF document) Test case for bug #67. i.e. hp internal bugzilla #67 --> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Bag rdf:-1="a" /> </rdf:RDF> ======== I have three other related tests all of which spuriously are accepted by xerces2. The rdf:-1 or rdf:0 as an attribute name, or rdf:-1 or rdf:0 as an element name. The character after the : must be an NCNameStartChar. A correct error message could be: Invalid LocalPart in QName. ===== $ java -version java version "1.4.0" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92) Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
