<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <head>
    <title>11.1.h validate attribute of submission element</title>
    <link rel="stylesheet" href="../../driverPages/html/TestSuite11.css" type="text/css"/>
    <xforms:model id="m1">
       <xforms:instance xmlns="">       
          <car>
          	<make>Toyota</make>
          	<age xsi:type="xsd:positiveInteger">ten</age>
          </car>
       </xforms:instance>
       <xforms:submission id="sub_true" ref="/car/age" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php" validate="true">
       	 <xforms:message ev:event="xforms-submit-error" level="modal">xforms-submit-error</xforms:message>
       </xforms:submission>
       <xforms:submission id="sub_false" ref="/car/age" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php" validate="false">
       	 <xforms:message ev:event="xforms-submit-error" level="modal">xforms-submit-error</xforms:message>
       </xforms:submission>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">11.1.h validate attribute of submission element</xforms:label>
  		
  	</xforms:group>
	<xforms:group>
		<xforms:label>
		  When you activate the Submit (validate=true) submit control you must see an xforms-submit-error 
		  message. When you activate the Submit (validate=false) submit control you must not see a message. 
		</xforms:label>
	</xforms:group>
	<xforms:group>
		<xforms:submit submission="sub_true">
	      	<xforms:label>Submit (validate=true)</xforms:label>
      	</xforms:submit>
      	<xforms:submit submission="sub_false">
	      	<xforms:label>Submit (validate=false)</xforms:label>
      	</xforms:submit>
	</xforms:group>
	
  </body>  
</html>