A base type for million dollar figures:
<xs:simpleType base="FundingAmounts"> <xs:restriction> <xs:minInclusive value="1000000" fixed="true"/> </xs:restriction> </xs:simpleType>
Restricting a product code to 8 characters:
<xs:simpleType base="ProductCode"> <xs:restriction> <xs:length value="8" fixed="true"/> </xs:restriction> </xs:simpleType>