Kasimier T. Buchcik | b63d2fa | 2006-04-19 11:20:49 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> |
| 3 | <xs:simpleType name="fooType">
|
| 4 | <xs:restriction base="xs:string">
|
| 5 | <xs:enumeration value="a"/>
|
| 6 | <xs:enumeration value="b"/>
|
| 7 | <xs:enumeration value="c"/>
|
| 8 | <xs:enumeration value="d"/>
|
| 9 | </xs:restriction>
|
| 10 | </xs:simpleType>
|
| 11 | <xs:simpleType name="barType">
|
| 12 | <xs:restriction base="fooType">
|
| 13 | <xs:enumeration value="a"/>
|
| 14 | <xs:enumeration value="b"/>
|
| 15 | <xs:enumeration value="d"/>
|
| 16 | </xs:restriction>
|
| 17 | </xs:simpleType>
|
| 18 | <xs:element name="foo" type="barType" /> |
| 19 | </xs:schema> |