enumeration Constrains the value of the data type to a defined set of values : enumeration « XML Schema « XML Tutorial






<xsd:simpleType name="dayType">
  <xsd:restriction base="xsd:string">
   <xsd:enumeration value="Monday"/>
   <xsd:enumeration value="Tuesday"/>
   <xsd:enumeration value="Wednesday"/>
   <xsd:enumeration value="Thursday"/>
   <xsd:enumeration value="Friday"/>
   <xsd:enumeration value="Saturday"/>
   <xsd:enumeration value="Sunday"/>
  </xsd:restriction>
</xsd:simpleType>








3.66.enumeration
3.66.1.Specifying a Set of Acceptable Values
3.66.2.enumeration Constrains the value of the data type to a defined set of values
3.66.3.Enumeration limits a value space to a specific set of values - if a value isn't specified in the set in the schema, it isn't valid.
3.66.4.Enumerating A Simple Type