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=25466>. 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=25466 DOM serialization omits attribute namespace declarations ------- Additional Comments From [EMAIL PROTECTED] 2003-12-12 16:29 ------- Understandly the actual DOM does not require the namespace declarations seeing as they are held within the Attr objects, but the example I attached shows the problem when the DOM is serialized to a *stream*. In this case, the namespace URIs of any namespaced attributes are then lost if the serializer doesn't also add the namespace declarations, as Xalan currently doesn't. Serializing a DOM that contains a namespaced element without a corresponding namespace declaration attribute adds the namespace declaration attribute implicity, as expected. The problem is that this behaviour is not carried over for attributes. This results in Xalan producing *invalid* XML, as confirmed by the XML Names specification namespace constraint (prefix declared): http://www.w3.org/TR/REC-xml-names/#nsc-NSDeclared
