<xsd:simpleType name="NumericBoolean"> <xsd:restriction base="xsd:boolean"> <xsd:pattern value="0|1"/> </xsd:restriction> </xsd:simpleType>