<xs:simpleType name="IDString" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:restriction base="pc:defaultString"> <xs:maxLength value="50" /> <xs:pattern value="[A-Za-z0-9_\-]*" /> </xs:restriction> </xs:simpleType>