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

Re: "Expanding" an enumeration

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 07 Nov 2001 09:00:09 +0000
To: Mark Feblowitz <mfeblowitz@frictionless.com>
Cc: "Xmlschema-Dev (E-mail)" <xmlschema-dev@w3.org>
Message-ID: <f5br8rbvtuu.fsf@cogsci.ed.ac.uk>
1) You're right, it's not allowed.  You can only <redefine> a type
(simple or complex) with a definition which would be legal as a
definition of a new type, and the only definition of new simple types
in terms of old is by restriction.

2) If you define the PartnerType as an open enumeration (i.e. a union
of an enumeration and string, in that order) you can at least cover
all the cases, while still documenting preferred usage.

See also next message.

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 Wednesday, 7 November 2001 03:59:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:35 GMT