enumeration facet
Monday, March 29, 2010
2:05 PM
enumeration facet
restricts a string to a set of values
 <xs:simpleType name="locationType">
   <xs:restriction base="xs:string">
     <xs:enumeration value="work"/>
     <xs:enumeration value="home"/>
   </xs:restriction>      
 </xs:simpleType>

This limits a location to be either "work" or "home"
Pasted from <[link]> 