W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

Re: Uniqueness of attribute names

From: Dan Connolly <connolly@w3.org>
Date: Thu, 10 Aug 2000 13:13:36 -0500
Message-ID: <3992F0D0.B3E90905@w3.org>
To: Robin LaFontaine <robin@monsell.co.uk>, www-xml-schema-comments@w3.org
CC: xmlschema-dev@w3.org
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:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC