<xs:simpleType name="Custom"> <xs:restriction base="xs:string"> <xs:pattern value="x-[^\s]+"/> </xs:restriction> </xs:simpleType>