<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="../xhtml2.css" ?>
<!DOCTYPE html [
	<!ATTLIST section id ID #IMPLIED>
	<!ATTLIST h       id ID #IMPLIED>
	<!ATTLIST div     id ID #IMPLIED>
	<!ATTLIST nl      id ID #IMPLIED>
]>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
      xmlns:xforms="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xml:lang="en">
  <head>
    <title>Test case for assertion 9: Schema limitation.</title>
    <xforms:model id="m_001" schema="#mySchema1 #mySchema2">
    	<xforms:instance id="i_001" xmlns="">
    		<r>
    			<q xsi:type="question">What is the Meaning of Life, the Universe and Everything?</a>
    			<a xsi:type="answer">42</a>
    		</r>
    	</xforms:instance>

    	<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="mySchema1"
           targetNamespace="http://example.com/">
	      <xsd:simpleType name="question">
	        <xsd:restriction base="xsd:string">
						<xsd:maxLength value="50"/>
	        </xsd:restriction>
       </xsd:simpleType>
     </xsd:schema>

    	<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="mySchema2"
           targetNamespace="http://example.com/">
	      <xsd:simpleType name="answer">
	        <xsd:restriction base="xsd:integer">
						<xsd:minInclusive value="42"/>
						<xsd:maxInclusive value="42"/>
	        </xsd:restriction>
       </xsd:simpleType>
     </xsd:schema>

    </xforms:model>
  </head>
  <body>
    <xforms:group>
       <xforms:label>Should fail with implementation defined error.
       	Only one Schema per namespace declaration is allowed.</xforms:label>
    </xforms:group>
  </body>
</html>
