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=4351>. 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=4351 nested namespace prefix scope confused when ancestor element has both xmlns and regular attributes Summary: nested namespace prefix scope confused when ancestor element has both xmlns and regular attributes Product: Xerces2-J Version: 2.0.0 [beta 2] Platform: PC OS/Version: FreeBSD Status: NEW Severity: Normal Priority: Other Component: SAX AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Using the following command line on FreeBSD 4.4... java -classpath /usr/local/jdk1.1.8/lib/classes.zip:/home/mike/xml/xerces- 2_0_0_beta2/xerces.jar:/home/mike/xml/xerces-2_0_0_beta2/xercesSamples.jar sax.Counter foo.xml and the following foo.xml... <foo xmlns:u="asdfadsf" bar="baz"> <a:maz xmlns:a="aaa" xmlns:b="bbb" xmlns:u="uuu"/> </foo> The following error is generated: [Fatal Error] u.xml:2:53: The prefix "a" for element "a:maz" is not bound. error: Parse error occurred - The prefix "a" for element "a:maz" is not bound. org.xml.sax.SAXException: The prefix "a" for element "a:maz" is not bound. at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:929) at sax.Counter.main(Counter.java:523) But take out the foo="bar" attribute, or add another non-xmlns attribute, and it works! <foo xmlns:u="asdfadsf"> <a:maz xmlns:a="aaa" xmlns:b="bbb" xmlns:u="uuu"/> </foo> I've tried various other combinations and couldn't readily determine the pattern as to when it fails and when it works. It seems to be related to the presence of the non-xmlns attribute on the containing element that also has xmlns attributes. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
