W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2001

ref + default -> ok with attributes, not with elements

From: Roger L. Costello <costello@mitre.org>
Date: Fri, 06 Jul 2001 08:36:24 -0400
Message-ID: <3B45B0C8.E85A9D33@mitre.org>
To: xmlschema-dev@w3.org, costello@mitre.org
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?  /Roger
Received on Friday, 6 July 2001 08:36:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:22 GMT