You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Ramesh Gupta <ra...@eNode.com> on 2000/10/17 17:45:39 UTC

minInclusive/maxInclusive don't work for float

I posted the following to xml-dev last week, but got no response, so I am
trying it here (which is where I should have started, I guess). Is the
following a known bug in Xerces 1.2.0?

----------
From: Ramesh Gupta <ra...@eNode.com>
Date: Fri, 13 Oct 2000 10:00:16 -0700
To: xml-dev@xml.org
Subject: minInclusive/maxInclusive don't work for float

In a schema I have:

<!-- ========== -->
<simpleType name="myType"   base="float"    derivedBy="restriction">
    <minInclusive   value="0.0"/>
    <maxInclusive   value="1.0"/>
</simpleType>

<element    name="x"    type="my:myType"/>
<!-- ========== -->

In an instance document, I have:

<x>23</x>

With Xerces 1.2.0, this is validated without any errors. Any clues, anybody?

TIA,

Ramesh