It looks like the repairing writer does not consider the fact that attributes
newer use default namespace (ie. if attribute has no prefix, it is not in any
namespace, independent of there is a default namespace binding or not), and
instead of assumes default namespace does apply to attributes.
A demonstration of this can be found from StaxTest (available from
http://stax.codehaus.org), test TestRepairingWriter#testAttributes.
(I can try to come up with a shorter snippet too, but this should be easy enough