<?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:ev="http://www.w3.org/2001/xml-events" xmlns:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>11.5.a xforms-submit-error event</title>
    <link rel="stylesheet" href="../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model id="m_001">
	      <xforms:instance>
		        <car xmlns="">
			        <make>Acura</make>
			        <year>1994</year>
			        <color>white</color>
			    	<hp>120</hp>
		        </car>
	      </xforms:instance>
      <!-- submission submits only what the bind is attached to -->
      <xforms:submission id="submit" action="http://invaliduri.com" bind="color_bind" method="post" replace="none">
	      	<xforms:action ev:event="xforms-submit-error">
	      		<xforms:message level="modal">xforms-submit-error</xforms:message>
	      	</xforms:action>
      </xforms:submission>
      <xforms:bind id="make_bind" nodeset="/car/make"/>
      <xforms:bind id="year_bind" nodeset="/car/year"/>
      <xforms:bind id="color_bind" nodeset="/car/color"/>
      <xforms:bind id="hp_bind" nodeset="/car/hp"/>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">11.5.a xforms-submit-error event</xforms:label>
  	</xforms:group>
  	<xforms:group>
		<xforms:label>  	
		  After you activate the Submit Now submit control you must see an xforms-submit-error message. 
		  It may take a few seconds for the message to appear. 
  		</xforms:label>	
  	</xforms:group>
  	
    <xforms:submit submission="submit">
    	<xforms:label>Submit Now</xforms:label>
    </xforms:submit>
	
  </body>
</html>