<?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>
  		<!-- if the custom event-cancel test case doenst work this can replace it maybe? -->
    	<title>10.8.f dispatch element dispatches cancelled predefined event</title>
    	<link rel="stylesheet" href="../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model id="model1" ev:event="xforms-reset" ev:defaultAction="cancel">
       		<xforms:instance xmlns="">
				<car>Audi</car>
       		</xforms:instance>
    	</xforms:model>
    	<xforms:setvalue ev:event="xforms-ready" ref="/car">Kia</xforms:setvalue>
  	</head>
  	<body>
  		<xforms:group>
	  		<xforms:label class="title">10.8.f dispatch element dispatches cancelled predefined event</xforms:label>
	  	</xforms:group>	
  		<xforms:group>
  			<xforms:label>
  				When you activate the Reset trigger the value in the input control must NOT change to "Audi".
			</xforms:label>
  		</xforms:group>
		<xforms:trigger>
	        <xforms:label>Reset</xforms:label>
	        <xforms:action ev:event="DOMActivate">
				<xforms:reset model="model1"/>
			</xforms:action>
		</xforms:trigger>

		<xforms:input id="input1" ref="/car">
			<xforms:label>Car Input : </xforms:label>
		</xforms:input>
		
  </body>
</html>
