1<?xml version="1.0" encoding="ISO-8859-1" ?> 2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 3 targetNamespace="http://foo" 4 xmlns="http://foo" 5 xmlns:a="http://foo"> 6 7 <xsd:element name="foo"> 8 <xsd:complexType> 9 <xsd:sequence> 10 <xsd:element name="em" 11 type="emType" 12 maxOccurs="unbounded" 13 form="qualified"/> 14 </xsd:sequence> 15 </xsd:complexType> 16 </xsd:element> 17 18 <xsd:simpleType name="emp0001_3Type"> 19 <xsd:restriction base="xsd:ID"> 20 <xsd:enumeration value="EMP0040"/> 21 <xsd:enumeration value="EMP0003"/> 22 <xsd:enumeration value="EMP0004"/> 23 <xsd:enumeration value="EMP0005"/> 24 </xsd:restriction> 25 </xsd:simpleType> 26 27 <xsd:simpleType name="emp0004_5Type"> 28 <xsd:restriction base="xsd:ID"> 29 <xsd:enumeration value="EMP0002"/> 30 <xsd:enumeration value="EMP0090"/> 31 <xsd:enumeration value="EMP0007"/> 32 </xsd:restriction> 33 </xsd:simpleType> 34 35 <xsd:simpleType name="unboundedEmType"> 36 <xsd:union memberTypes="a:emp0001_3Type emp0004_5Type"> 37 <xsd:simpleType> 38 <xsd:restriction base="xsd:ID"> 39 <xsd:enumeration value="EMP0099"/> 40 </xsd:restriction> 41 </xsd:simpleType> 42 </xsd:union> 43 </xsd:simpleType> 44 45 <xsd:simpleType name="emType"> 46 <xsd:restriction base="unboundedEmType"> 47 <xsd:pattern value="EMP[0-9]*"/> 48 </xsd:restriction> 49 </xsd:simpleType> 50 51 52 53</xsd:schema> 54