This only applies to types that derive from 'Decimal'.
The use these elements:
totalDigits - the maximum number of digits (including fractional parts).
fractionDigits - the maximum number of fractional digits.
The fractional digits must be less than the total digits.
A money amount less than $1 million.
<xs:simpleType name="amount"> <xs:restriction base="xs:decimal"> <xs:totalDigits value='8'/> <xs:fractionDigits value='2'/> </xs:restriction> </xs:simpleType>