<?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:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>11.1.c resource attribute of submission element</title>
    <link rel="stylesheet" href="../../driverPages/html/TestSuite11.css" type="text/css"/>
    <xforms:model id="car1">
      <xforms:instance id="information">
        <!-- make now has a descendant, which should be submitted if make is submitted -->
        <car xmlns="">
          <make>Acura
          	<model>Integra</model>
          </make>
          <year>1994</year>
          <color>white</color>
          <hp>120</hp>
        </car>
      </xforms:instance>
      <xforms:submission id="submitMakeModel" ref="/car/make" resource="http://xformstest.org/cgi-bin/echo.sh" method="post"/>
      <xforms:submission id="submitColor" ref="/car/color" resource="http://invalid/bin/echo.sh" method="post">
          <xforms:resource>http://xformstest.org/cgi-bin/echo.sh</xforms:resource>
      </xforms:submission>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">11.1.c resource attribute of submission element</xforms:label>
  	</xforms:group>
    <xforms:group>
		<xforms:label>
		  When you activate the Submit Make And Model trigger the page must be replaced by the form data. 
		  The form data must contain the values "Acura" and "Integra", but not the value 
		  "white". 
		</xforms:label>
    </xforms:group>
    <xforms:submit id="makeModelButton" submission="submitMakeModel">
        <xforms:label>Submit Make And Model</xforms:label>
    </xforms:submit>
    <xforms:group>
    	<xforms:label>
    	  When you activate the Submit Color trigger the page must be replaced by the form data. 
		  The form data must contain the value "white" but not the values "Acura" or 
		  "Integra". 
    	</xforms:label>
    </xforms:group>
	<xforms:submit id="colorSubmit" submission="submitColor">
	    <xforms:label>Submit Color</xforms:label>
	</xforms:submit>
	
  </body>
</html>
