Date with constraining facet minInclusive (timezone related)

D

David Valera

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....
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top