I've been through the XML Namespaces Rec a couple of times, and one part of
the XMLSerializer class puzzles me:

273 if (( attrURI != null && attrURI.length() != 0 ) &&
274 ( namespaceURI == null || namespaceURI.length() == 0 ||
275 ! attrURI.equals( namespaceURI ) ) )

Why is line 275 there?  If I have something like:

        <foo:bar foo:baz="qux" xmlns:foo="snarf">

that runs through a SAX parser, the serializer will report is as:

        <foo:bar baz="qux" xmlns:foo="snarf">

My read on the namespace rec says that the namespace prefix on the attribute
should still be reported in this context.  A proposed patch is the removal
of that expression...

Paul Brown
FiveSight Technologies, Inc.


Reply via email to