<?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>4.4.15.a xforms-select and xforms-deselect events</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
      <xforms:instance>
        <selectedCar xmlns=""/>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
    	<xforms:label class="title">4.4.15.a xforms-select and xforms-deselect events</xforms:label>
    </xforms:group>
    <xforms:group>
    	<xforms:label>  	
      		You must see an xforms-select message when the value "Subaru" is selected in 
      		the select control. 
      		You must see an xforms-deselect message when the value "Subaru" is deselected in 
      		the select control. 
      	</xforms:label>	
    </xforms:group>
    
    <xforms:select ref="/selectedCar">
      	<xforms:label>Cars</xforms:label>
        <xforms:item>
          	<xforms:label>Pinto</xforms:label>
          	<xforms:value>pin</xforms:value>
        </xforms:item>
        <!-- you should see select/deselct messages when this item is selected/deselected -->
        <xforms:item>
          	<xforms:label>Subaru</xforms:label>
          	<xforms:value>sub</xforms:value>
          	<xforms:action ev:event="xforms-select">
          		<xforms:message level="modal">xforms-select</xforms:message>
          	</xforms:action>
          	<xforms:action ev:event="xforms-deselect">
          		<xforms:message level="modal">xforms-deselect</xforms:message>
          	</xforms:action>
        </xforms:item>
    </xforms:select>
	
  </body>
</html>
