<?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" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <head>
    <title>11.1.i relevant attribute of submission element</title>
    <link rel="stylesheet" href="../../driverPages/html/TestSuite11.css" type="text/css"/>
    <xforms:model id="m1">
       <xforms:instance xmlns="">       
          <sportbike>
          	<make>Suzuki</make>
          	<model>Hayabusa 1300</model>
          	<dateOfPurchase>2006-04-26</dateOfPurchase>
          </sportbike>
       </xforms:instance>
       <xforms:bind nodeset="/sportbike/dateOfPurchase" relevant="false()"/>
       <xforms:submission id="sub_true" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php" relevant="true"/>
       <xforms:submission id="sub_false" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php" relevant="false"/>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">11.1.i relevant attribute of submission element</xforms:label>
  	</xforms:group>
	<xforms:group>
		<xforms:label>
		  Both submit controls must replace the page with the form data when activated. 
		  When you activate the Submit (relevant=true) submit control you must see the values "Suzuki" and 
		  "Hayabusa 1300" in the form data. 
		  When you activate the Submit (relevant=false) submit control you must see the values "Suzuki", 
		  "Hayabusa 1300", and "2006-04-26" in the form data. 
		</xforms:label>
	</xforms:group>
	<xforms:group>
		<xforms:submit submission="sub_true">
	      	<xforms:label>Submit (relevant=true)</xforms:label>
      	</xforms:submit>
	</xforms:group>
	<xforms:group>
		<xforms:submit submission="sub_false">
	      	<xforms:label>Submit (relevant=false)</xforms:label>
      	</xforms:submit>
	</xforms:group>
	
  </body>
</html>
