- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 07 Jul 2001 15:09:15 +0100
- To: "Roger L. Costello" <costello@mitre.org>
- Cc: xmlschema-dev@w3.org
"Roger L. Costello" <costello@mitre.org> writes:
> This is permitted:
>
> <attribute ref="color" default="red"/>
>
> But this is not permitted:
>
> <element ref="altitude" default="12000"/>
>
> That is, an attribute can have a ref and a default, but with an element
> if it has a ref then it cannot have a default.
>
> Isn't this a bit inconsistent?
Yes. There was a point where _neither_ allowed defaults. For various
reasons it was possible to fix this for attributes at the last minute,
but not for elements. I hope to fix this in the next version.
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 Saturday, 7 July 2001 10:09:10 UTC