Restriction Examples
...
<!-- <xs:element name="insurance" type="xs:integer"/> -->
<xs:element name="insurance">
<xs:simpleType>
<xs:restriction base="xs:integer"> <!-- an integer... -->
<xs:minInclusive value="90" /> <!-- ...with a minimum value of 90... -->
<xs:maxInclusive value="690" /> <!-- ... and a maximum value of 690 -->
</xs:restriction>
</xs:simpleType>
</xs:element>
...
<!-- <xs:element name="edge" type="xs:NCName"/> --> <!-- NCName is like string -->
<xs:element name="edge">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Bentley"/>
<xs:enumeration value="Ford"/>
<xs:enumeration value="Vauxhall"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
...