<?xml-stylesheet type="text/xsl" href="/xforms-tests/xsltforms/xsltforms.xsl"?>
<html xmlns:my="http://commerce.example.com/payment" xmlns:txs="http://sourceforge.net/projects/txs" xmlns="http://www.w3.org/1999/xhtml" xmlns:req="http://www.agencexml.com/requests" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ex="http://example.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events">
  	<head>
    	<title>8.1.4.b data binding restrictions for textarea element</title>
    	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model>
       		<xforms:instance>
          		<ex:message>
             		<ex:body xsi:type="question">
             		  <ex:child>bad</ex:child>
             		</ex:body>
          		</ex:message>
       		</xforms:instance>
			<xsd:schema id="mySchema1" targetNamespace="http://example.com/">
				<xsd:complexType name="BaseQuestion"/>
				<xsd:complexType name="question">
				  <xsd:complexContent>
					<xsd:extension base="ex:BaseQuestion">
						<xsd:attribute name="type"/>
					</xsd:extension>
				  </xsd:complexContent>
				</xsd:complexType>
			</xsd:schema>
    	</xforms:model>
  	</head>
  	<body>
  	    <xforms:group>
  		    <xforms:label class="title">8.1.4.b data binding restrictions for textarea element</xforms:label>
        </xforms:group>
		<xforms:group>
			<xforms:label>
			  This page has a textarea control bound to a complexType datatype. Textarea controls can only bind 
			  to simpleContent. The textarea control must not work correctly, generate an error, not appear on this 
			  page or otherwise make the problem known. 
			</xforms:label>
		</xforms:group>
			<xforms:textarea ref="/ex:message/ex:body">
 				<xforms:label>Bound to Complex Content</xforms:label>
 	     	</xforms:textarea>
			
  </body>
</html>
