<xs:simpleType name="extension"> <xs:restriction base="xs:string"> <xs:pattern value="[0-9]{1,5}"/> </xs:restriction> </xs:simpleType>