With apologies for the slow response....
On Tue, 8 Oct 2002 16:04:05 -0400, Naomi Dushay <[log in to unmask]>
> The issue is that Xerces 2.2.0 complains if you assign a
> namespace prefix to the XML namespace URI:
> http://www.w3.org/XML/1998/namespace (though it is still
> fine to import it.) This behavior is currently peculiar to
> Xerces 2.2.0 ... but I'm not sure if Xerces 2.2.0 is right or
> wrong in it's complaint.
Some truffling around on xmlschema-dev returns:
Under NE05 that says:
The prefix xml is by definition bound to the namespace name
http://www.w3.org/XML/1998/namespace. It may, but need not, be declared,
and must not be bound to any other namespace name. No other prefix may be
bound to this namespace name.
That last sentence is the decisive one here, and it means that a namespace
is invalid, rather than redundant.
So yes, it looks as if Xerces 2.2 _is_ implementing that errata correctly
here. Recent versions of XSV also now report an error. It's a (relatively)
recent errata, which I guess explains the change in validator behaviour
and also why some other parsers haven't caught up.
FWIW, this has hit other communities too e.g.
I think Naomi's suggested fix works and I've put an amended version