Hi, I have run across an XML Schema with the following definition.
<xs:simpleType name="ClassRankType">
<xs:restriction base="xs:integer">
<xs:totalDigits value="4"/>
<xs:minInclusive value="1"/>
<xs:maxInclusive value="9999"/>
</xs:restriction>
</xs:simpleType>
However, it seems to me that totalDigits is redundant. I am somewhat new to XML Schema, and want to make sure I'm not missing something.
What is the actual behavior of totalDigits vs. maxInclusive, and can totalDigits always be represented with a combination of minInclusive and MaxInclusive? How does totalDigits affect negative numbers?