W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2000

Re: Disjoint datatypes?

From: <petsa@us.ibm.com>
Date: Wed, 3 May 2000 13:12:49 -0400
To: "Vun Kannon, David" <dvunkannon@kpmg.com>
cc: "'ht@cogsci.ed.ac.uk'" <ht@cogsci.ed.ac.uk>, "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Message-ID: <852568D4.005E8D0B.00@D51MTA03.pok.ibm.com>
No, sorry, not in version 1.
You cannot create a type out of the union of disjoint types, say, integer
and string.
You also cannot union two separately declared enumerations.

All the best, Ashok

"Vun Kannon, David" <dvunkannon@kpmg.com>@w3.org on 05/03/2000 12:04:24 PM

Sent by:  www-xml-schema-comments-request@w3.org

To:   "'ht@cogsci.ed.ac.uk'" <ht@cogsci.ed.ac.uk>
cc:   "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
Subject:  Disjoint datatypes?

Can I build a datatype out of pieces that are disjoint? A simple example
might be US_states + Canadian_provinces. Say my schema already contains
declarations of these two enumerations. The new enumeration I want is the
merger of the two. I don't want to extend one with the members of the
explicitly written out.
A more complex case is SQL style datatypes: integer + NULL. Can I build
a datatype in XSchema?

The information in this email is confidential and may be legally
It is intended solely for the addressee. Access to this email by anyone
is unauthorized.

If you are not the intended recipient, any disclosure, copying,
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed
the governing KPMG client engagement letter.
Received on Wednesday, 3 May 2000 13:13:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:47 UTC