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

Lists and unions derived from ID/IDREF

From: Michael Kay <mike@saxonica.com>
Date: Wed, 3 Nov 2004 11:02:50 -0000
To: <xmlschema-dev@w3.org>
Message-Id: <E1CPIuj-00023K-00@ukmail1.eechost.net>

Does the spec have anything to say about deriving list and union types from

The description of the ID/IDREF table in 3.15.5 discusses IDREFS separately.
This suggests that in that section one should read "derived from" as meaning
"derived by restriction from" (otherwise it would not be necessary to
mention IDREFS).

Am I right in thinking that types derived by List or Union from ID and IDREF
are permitted, but that they imply no uniqueness or referential constraints?

Another reading of the spec is that if a simple type is a list of IDs, then
the entire list is required to be unique. Equally, if a simple type is a
union of ID and integer, then its values are required to be unique - which
becomes a nice trick for defining integer or date-valued unique ids.

Michael Kay
Received on Wednesday, 3 November 2004 11:02:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:06 UTC