<xs:simpleType name="phoneNumber"> <xs:restriction base="xs:string"> <xs:pattern value="[2-9][0-9]{2}[2-9][0-9]{2}[0-9]{4}"/> </xs:restriction> </xs:simpleType>