<xsd:simpleType name="phoneType"> <xsd:restriction base="xsd:string"> <xsd:pattern value="[0-9]{3}-[0-9]{7}"/> </xsd:restriction> </xsd:simpleType>