Maps to a UML Attribute with the stereotype XSDenumeration.
<enumeration value = anySimpleType {any attributes with non-schema namespace…}> Content: (annotation?) </enumeration> |
The following example is a datatype definition for a user-derived datatype which limits the values of dates to the three US holidays <simpleType name='holidays'> <annotation> <documentation>some US holidays</documentation> </annotation> <restriction base='gMonthDay'> <enumeration value='--01-01'> <annotation> <documentation>New Year's day</documentation> </annotation> <enumeration value='--07-04'> <annotation> <documentation>4th of July</documentation> </annotation> <annotation> </annotation> </enumeration> </restriction> |