Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Date with constraining facet minInclusive (timezone related)

Reply
Thread Tools

Date with constraining facet minInclusive (timezone related)

 
 
David Valera
Guest
Posts: n/a
 
      05-10-2005
Hello,

Say you have the following XML instance:

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

and the following schema:

<xs:schema xmlnss="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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JAXB : how to get the list of allowed values from an enumeration facet ? Dj Frenzy Java 0 12-16-2004 09:20 PM
JAXB : how to get the list of allowed values from an enumeration facet ? Jean-Marie Condom Java 0 12-16-2004 09:48 AM
Regular expression does not work in pattern facet? Johann Sijpkes XML 2 07-14-2004 05:30 PM
Date, date date date.... Peter Grison Java 10 05-30-2004 01:20 PM
how to create a case-insensitive pattern facet in XML Schema? FC XML 4 10-27-2003 03:01 PM



Advertisments