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 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC