Re: [xml-dev] attributes with same name and different prefix

From
Ronald Bourret <>
To
Jeff Greif <>
Date
2002-04-27T19:27:29Z
ID
<>
Thread
Re: [xml-dev] attributes with same name and different prefix
This is legal. If Xerces complains, it's a bug.

Note that "src", when used as an attribute name (src="bar") is not a
namespace prefix. In order to be a namespace prefix, it would have to be
followed by a colon and a local name -- for example, src:attrname or
even src:src.

-- Ron

> Jeff Greif wrote:
> 
> Is this illegal (to have two attributes with same name and different
> prefixes, one of them specifying a namespace prefix association):
> 
> <foo src="bar" xmlns:src="some-uri" />
> 
> MSXML accepts it without problem, but I've been told that several
> versions of Xerces complains.