You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Bob DuCharme <bo...@snee.com> on 2002/11/17 23:50:37 UTC
not catching minInclusive-valid-restriction error?
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:restriction>
</xs:simpleType>
<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"/>
</xs:restriction>
</xs:simpleType>
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?
thanks,
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