Date with constraining facet minInclusive (timezone related)

Discussion in 'XML' started by David Valera, May 10, 2005.

  1. David Valera

    David Valera Guest

    Hello,

    Say you have the following XML instance:

    <Date>2000-01-01+02:00</Date>

    and the following schema:

    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <xs:element name="date">
    <xs:simpleType>
    <xs:restriction base="xs:date">
    <xs:minInclusive value="2000-01-01"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    </xs:schema>

    According to the W3C spec the dates are compared but since one of them
    has no timezone then it is not possible to determinate if the date in
    the instance is chronologically greater.

    My question is, what must a validating parser do? generate an error or
    not?

    I might have a bug in a validating parser if an error should be
    raised....

    --

    David Valera
     
    David Valera, May 10, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Peter Grison

    Date, date date date....

    Peter Grison, May 28, 2004, in forum: Java
    Replies:
    10
    Views:
    3,325
    Michael Borgwardt
    May 30, 2004
  2. Jean-Marie Condom
    Replies:
    0
    Views:
    700
    Jean-Marie Condom
    Dec 16, 2004
  3. asaf
    Replies:
    3
    Views:
    6,206
    =?ISO-8859-1?Q?Arne_Vajh=F8j?=
    Sep 11, 2006
  4. axrock
    Replies:
    8
    Views:
    986
    Roedy Green
    Mar 25, 2009
  5. Ami
    Replies:
    5
    Views:
    301
Loading...

Share This Page