view test/javax/xml/jaxp/unittest/validation/tck/Bug6963468.xsd @ 779:2b61bfcaa586

8132660: Change jaxp unit test package name to be different with jaxp api Reviewed-by: joehw Contributed-by: frank.yuan@oracle.com
author joehw
date Mon, 10 Aug 2015 09:52:32 -0700
parents test/javax/xml/jaxp/unittest/javax/xml/validation/tck/Bug6963468.xsd@29ba77ad2a87
children
line wrap: on
line source

<xsd:schema id="MyXSD" targetNamespace="http://xsdtesting" xmlns="http://xsdtesting" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" elementFormDefault="qualified">


	    <xsd:element name="root">
	      <xsd:complexType>
		<xsd:choice maxOccurs="unbounded">
		    <xsd:element ref="E1" minOccurs="0" maxOccurs="20"/>
		    <xsd:element ref="E3" minOccurs="0" maxOccurs="20"/>
		</xsd:choice>
	      </xsd:complexType>
	    </xsd:element>

	    <xsd:simpleType name="myType9">
		  <xsd:list itemType="myType10"/>
	  </xsd:simpleType>

	  <xsd:simpleType name="myType10">
        	<xsd:union memberTypes="xsd:float xsd:integer">
          		<xsd:simpleType>
		            <xsd:restriction base='xsd:boolean'/>
		        </xsd:simpleType>
		        <xsd:simpleType>
		            <xsd:restriction base='xsd:string'>
		              <xsd:enumeration value='x'/>
		              <xsd:enumeration value='y'/>
		            </xsd:restriction>
		        </xsd:simpleType>
	        </xsd:union>
	 </xsd:simpleType>

	<xsd:simpleType name="DeriveUnion">
	  <xsd:restriction base="myType10">
	  </xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="CT1">
	  <xsd:attribute name="att1" type="myType10"/>
	</xsd:complexType>

	<xsd:complexType name="CT2">
	  <xsd:complexContent>
	    <xsd:restriction base="CT1">
		<xsd:attribute name="att1" type="xsd:integer"/>
	    </xsd:restriction>
	  </xsd:complexContent>
	</xsd:complexType>

	<xsd:element name="E1" type="myType10"/>
	<xsd:element name="E2" substitutionGroup="E1" type="xsd:integer"/>
	<xsd:element name="E3" type="CT2"/>
</xsd:schema>