[Xml-compile] XML::Compile::Schema::BuiltInFacets failing on a bounded dateTime

andrew campbell aamc_99 at yahoo.co.uk
Fri Feb 8 02:07:09 GMT 2013


I've got the following xsd defining a datetime. =



=A0 <simpleType name=3D"SpecialDateTimeType">
=A0=A0=A0=A0=A0=A0=A0=A0=A0 <restriction base=3D"dateTime">
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <minInclusive value=3D"1995-01-01T0=
0:00:00Z"/>
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 <maxInclusive value=3D"2120-12-31T0=
0:00:00Z"/>
=A0=A0=A0=A0=A0=A0=A0=A0=A0 </restriction>
=A0=A0=A0=A0=A0 </simpleType>

So when I create my data structure usually something like:

{ Date =3D> "2012-01-01T00:00:00Z" }

It passes the initial dateTime validation however I get the following failu=
re:

error: too large inclusive 2012-01-01T00:00:00Z max NaN at {http://example.=
com/}Date#facet

At a guess it looks as if the inclusive and exclusive tests treat the value=
s as integers. I'm wondering
if there is a graceful way I can switch these tests off, or make the tests =
dateTime aware.

Thanks,

Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/xml-compile/attachments/20130208/07=
df1c3e/attachment.htm


More information about the Xml-compile mailing list