Skip to content

Instantly share code, notes, and snippets.

@nimish
Last active May 7, 2020 02:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nimish/ce45c437e82f9b565ca576f768af26fb to your computer and use it in GitHub Desktop.
Save nimish/ce45c437e82f9b565ca576f768af26fb to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8">
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="Extension">
<xs:union memberTypes="Base Variant">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="E"/>
<xs:enumeration value="F"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="Base">
<xs:restriction base="xs:string">
<xs:enumeration value="A"/>
<xs:enumeration value="B"/>
<xs:enumeration value="C"/>
<xs:enumeration value="D"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Variant">
<xs:restriction base="xs:string">
<xs:enumeration value="A1"/>
<xs:enumeration value="B1"/>
<xs:enumeration value="C1"/>
<xs:enumeration value="D1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment