<?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>3.2.4.b node-set binding - model attribute of itemset element</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model id="order">
      <xforms:instance>
        <carOrder xmlns=""/>
      </xforms:instance>
      <xforms:submission id="submit_car" method="post" action="http://www.agencexml.com/xforms-tests/xsltforms/echo.php"/>
    </xforms:model>
    <xforms:model id="carsForSale">
      <xforms:instance>
        <carsAvailable xmlns="">
          <car>Audi</car>
          <car>BMW</car>
          <car>Mercedes</car>
          <car>Porsche</car>
          <car>Volkswagen</car>
        </carsAvailable>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">3.2.4.b node-set binding - model attribute of itemset element</xforms:label>
  	</xforms:group>
    
    <xforms:group>
		<xforms:label>
      	You must be able to select any or all of the items in the select control. After activating the Submit Cars 
      	trigger you must be able to see all the values you selected displayed on the screen in the form data.
      	</xforms:label>
    </xforms:group>
    
    <!-- itemset has model attribute and a nodeset attribute -->
    <xforms:select ref="/carOrder" model="order">
      	<xforms:label>Cars</xforms:label>
        <xforms:itemset nodeset="/carsAvailable/car" model="carsForSale">
	        <xforms:label ref="."/>
    	    <xforms:value ref="."/>
        </xforms:itemset>
    </xforms:select>
    
    <xforms:submit submission="submit_car">
        <xforms:label>Submit Cars</xforms:label>
    </xforms:submit>

	
  </body>
</html>
