Issue with xsd:maxInclusive restriction for 'float' type
Posted on 2011-03-03
My first question in the forum.
I've an XML file and an XSD to validate that. I've an element 'Duration' for which I've given a restriction of range. For eg [32.25, 128000]. I've defined the element as a simply type. Pls see below,
But the problem is with values. If I give values like 128000.001, 128000.002, 12800.003 and validate against the schema 'no errors are reported!!'. But if I give a value 128000.004 or more I'm getting 'cvc-maxInclusive-valid' failure, which is what I need.
1) I'm using Oxygen 11.1 version.
2) The problem starts with values with 3 or more fractional digits.
Could u pls tell me wr the problem is?