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

RE: Interdependence between fields

From: Michael Kay <mike@saxonica.com>
Date: Fri, 16 Nov 2007 15:48:02 -0000
To: "'Adrian Iacob'" <adrian.iacob@gmail.com>, <xmlschema-dev@w3.org>
Message-ID: <016d01c82868$12ada9a0$6501a8c0@turtle>

My question:
How can I restrict that Canada is allowed with Montreal and Toronto, USA is
with New York, Washington or Boston and Mexic is allowed only with Veracruz.

You can't. And I'm really not sure it would a good idea if you could. There
are some things that are data, and some that are metadata, and to my mind,
the fact that Montreal is in Canada is data, not metadata.
I don't think you'd want your schema to have built-in knowledge that there
are no direct flights from Manchester to Dallas, after all.
Michael Kay
Received on Friday, 16 November 2007 15:48:17 UTC

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