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

Missing from draft (Resend: previous incomplete)

From: Rick Jelliffe <ricko@gate.sinica.edu.tw>
Date: Tue, 11 May 1999 21:09:24 +0800
Message-ID: <009501be9baf$7dc50ac0$dd066d8c@sinica.edu.tw>
To: <www-xml-schema-comments@w3.org>
I am converting my XML-to-DDML converter to be an XML-to-XMLSchema
converter. So far it is pretty smooth going.

The draft is missing information (especially declarations in the appendixes)
on the following:

* ordered
* unordered
* boolean and so on

I have a suggestion for the enumerations.  It would be better to be able to
declare a bag of literals, and then assign enumeration properties to the
literals:

<bag name="days">
    <literal  enum="holiday">Sunday</literal>
    <literal  enum="working long-weekend-holiday">Monday</literal>
    <literal  enum="working">Tuesday</literal>
    <literal  enum="working">Wednesday</literal>
    <literal  enum="working">Thursday</literal>
    <literal  enum="working">Friday</literal>
    <literal  enum="us-holiday ">Saturday</literal>
    <literal  enum="tw-working">FirstSaturday</literal>
    <literal  enum="tw-holiday">SecondSaturday</literal>
</bag>
<datatype name="holiday">
    <enumeration>
        <bag name="days" />
    </enumeration>
</datatype>
<datatype name="working">
     <enumeration>
         <bag name="days" />
    <enumeration>
</datatype>
<datatype name="tw-working">
     <enumeration extends="working" >
              <bag name="days" />
    </enumeration>
</datatype>

Whether it would be better to have "extends" or elements to do set
operations on datatypeRef elements I dont know.

Rick Jelliffe
Received on Tuesday, 11 May 1999 09:19:44 GMT

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