<?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" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <head>
    <title>11.3.a xforms-submit-serialize event</title>
    <link rel="stylesheet" href="../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model id="m1">
       <xforms:instance xmlns="">       
          <car>
          	<make>Toyota</make>
          	<model>Prius</model>
          </car>
       </xforms:instance>
       <xforms:instance id="holder">
		  <data xmlns="">
		  	<event_data/>
		  </data>
       </xforms:instance>
       <xforms:submission id="submission" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php"/>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
  	   <xforms:label class="title">11.3.a xforms-submit-serialize event</xforms:label>
    </xforms:group>
	<xforms:group>
	  <xforms:label>
	    After you activate the Submit Now submit control you must see an xforms-submit-serialize 
	    message. The page must also be replaced by the form data, where you must see the values "Toyota" 
	    and "Prius". 
	  </xforms:label>
	</xforms:group>
	<xforms:action ev:event="xforms-submit-serialize" ev:observer="submission">
       	<xforms:message level="modal">xforms-submit-serialize</xforms:message>
    </xforms:action>
	<xforms:group>
		<xforms:submit submission="submission">
	      	<xforms:label>Submit Now</xforms:label>
      	</xforms:submit>
	</xforms:group>
	
  </body>
</html>
