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=23393>. 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=23393 namespace-prefixes on gives wrong namespace for xmlns attr ------- Additional Comments From [EMAIL PROTECTED] 2003-09-24 23:49 ------- This is a result of an unfortunate disagreement with the SAX community. The following statement appears directly in the documentation for how SAX2 behaves with namespaces: [[Note that when SAX2 reports namespace declaration attributes, like "xmlns:h", it conforms to the Namespaces in XML recommendation from W3C: they aren't in any namespace. Some other W3C specifications violate that specification, and put such declarations into a http://www.w3.org/2000/xmlns/ namespace. If you're working with namespace declarations, you may need to be aware of that issue.]] The full documentation on how SAX2 handles XML 1.0 namespaces is located at [1]. In my opinion errata are part of the namespaces rec, but SAX chooses not to honour erratum NE05 [2]. I agree that putting namespace declarations in a namespace after namespaces for XML 1.0 became a recommendation is backwards incompatible, but whether or not you, me or anyone else agrees with it, it's a decision we have to live with now. You can try stating your case to the SAX community [3], though this hasn't gone too well in the past. However, if you have a look at the javadocs [4] on the SAX project site there's a feature called 'xmlns-uris' which when set to true will cause the parser to present namespace declaration attributes to the applicaiton in the namespace "http://www.w3.org/2000/xmlns/". This feature isn't supported in any released version of SAX. I think it's supposed to be in SAX 2.1?, but given the activity (or lack thereof) in CVS [5] or the SAX mailing lists, it doesn't appear to be coming any time soon. [1] http://www.saxproject.org/?selected=namespaces [2] http://www.w3.org/XML/xml-names-19990114-errata#NE05 [3] http://sourceforge.net/mail/?group_id=29449 [4] http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html [5] http://cvs.sourceforge.net/viewcvs.py/sax/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]