xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob DuCharme <bo...@snee.com>
Subject not catching minInclusive-valid-restriction error?
Date Sun, 17 Nov 2002 22:50:37 GMT
There was an error that Xerces Java used to catch but doesn't anymore: with 
a schema that has these two declarations,

   <xs:simpleType name="monthType">
     <xs:restriction base="xs:integer">
       <xs:minInclusive value="1"/>
       <xs:maxInclusive value="12"/>

   <xs:simpleType name="orderMonthType">
     <xs:restriction base="monthType">
       <!-- wider range (0-12) than for base type (1-12), which is illegal -->
       <xs:minInclusive value="0"/>
       <xs:maxInclusive value="12"/>

Xerces Java 2.0.1 gave me this error message, which is pretty self-explanatory,

   [Error] xjutil1.xsd:48:40: minInclusive-valid-restriction.1: 
minInclusive value='0' must be >= minInclusive of the base type '1'.

but neither 2.0.2 nor 2.2.1 caught the error. Am I missing something, or 
should I report this as a bug?


Bob DuCharme          www.snee.com/bob           <bob@
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii
(bobdc e-mail address used only for mailing lists)

To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org

View raw message