- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 17 Aug 2000 13:45:41 +0100
- To: Robin LaFontaine <robin@monsell.co.uk>
- Cc: <xmlschema-dev@w3.org>
Robin LaFontaine <robin@monsell.co.uk> writes:
> 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? According to XML 1.0 it is
> surely the case that whenever we have multiple attributes in an
> element definition, they can always be distinguished by their 'name'
> (which is an attribute in XML schema).
>
>
> Therefore I would have thought that there would be a simile constraint
> as above within complexType (and attributeGroup).
Good idea, thanks!
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2001, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 17 August 2000 08:45:44 UTC