Re: Uniqueness of attribute names

Robin LaFontaine wrote:
> 
> In the element named 'schema' in the definition of XML Schema, there
> is a constraint:
> 
>     <key name="attribute">
>      <selector>attribute</selector>
>      <field>@name</field>
>     </key>
> 
> which indicates that the 'name' attribute is a key for the element
> called attribute.
> 
> Why is there not a corresponding constraint within the element named
> 'complexType' (and indeed in attributeGroup) in order to constrain
> all its attributes to have different names?

Looks like an oversight, i.e. a bug in the spec. I'm copying
www-xml-schema-comments@w3.org.


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/

Received on Thursday, 10 August 2000 14:14:49 UTC