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

(no subject)

From: <petsa@us.ibm.com>
Date: Tue, 16 May 2000 10:44:56 -0400
To: aairapetian@concordesolutions.com
cc: www-xml-schema-comments@w3.org
Message-ID: <852568E1.005101E0.00@D51MTA03.pok.ibm.com>
Aram:
My apologies for taking so long to reply to your note below.
We have made some changes to the text and corrected some typos.
Now, "date" has a period of 0 (no recurrence) and a duration of 24hours.
"time" has a period of 24 hours and a duration of zero.
I trust that addresses your concerns.

All the best, Ashok

REFERENCED NOTE
================================================================================
The following data type definitions are taken from "XML Schema schema for
XML Schemas: Part 2: Datatypes"

  <simpleType name="date" base="&dtp;recurringInstant">
        <annotation>
                <appinfo><has-facet name='period'/></appinfo>
                <appinfo><has-facet name='pattern'/></appinfo>
                <appinfo><has-facet name='enumeration'/></appinfo>
                <appinfo><has-facet name='maxInclusive'/></appinfo>
                <appinfo><has-facet name='maxExclusive'/></appinfo>
                <appinfo><has-facet name='minInclusive'/></appinfo>
                <appinfo><has-facet name='minExclusive'/></appinfo>
        </annotation>
    <period value="000000T2400"/>
  </simpleType>

  <simpleType name="time" base="&dtp;recurringInstant">
        <annotation>
                <appinfo><has-facet name='period'/></appinfo>
                <appinfo><has-facet name='pattern'/></appinfo>
                <appinfo><has-facet name='enumeration'/></appinfo>
                <appinfo><has-facet name='maxInclusive'/></appinfo>
                <appinfo><has-facet name='maxExclusive'/></appinfo>
                <appinfo><has-facet name='minInclusive'/></appinfo>
                <appinfo><has-facet name='minExclusive'/></appinfo>
        </annotation>
    <period value="000000T2400"/>
  </simpleType>

How come the 'date' and the 'time' types have the same period? The
"000000T2400" value is period for time. It is 'unit' for date, though. For
date (CCYY-MM-DD, see 3.3.22.1) period is "010000". Am I missing something?

The notions of 'period' and 'unit' might be beneficial for simplification
of numeric type definition. All types 3.2.2 - 3.2.5 and 3.3.9 - 3.3.21
could be defined (derived from decimal) by assigning corresponding
'period', 'unit' and 'signed/unsigned' constraints.


Thanks,
Received on Tuesday, 16 May 2000 10:46:05 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:52 UTC