<?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>
    	<title>10.8.e dispatch element dispatches cancelled custom event</title>
    	<link rel="stylesheet" href="../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model id="model1" ev:event="custom-event" ev:defaultAction="cancel">
    		<xforms:action>
    			<xforms:message level="modal">custom-event</xforms:message>
    		</xforms:action>
    	</xforms:model>
    	
  	</head>
  	<body>
  		<xforms:group>
	  		<xforms:label class="title">10.8.e dispatch element dispatches cancelled custom event</xforms:label>
	  	</xforms:group>	
  		<xforms:group>
  			<xforms:label>
  				When you activate the Fire Custom Event trigger you must not see a custom-event message. 
			</xforms:label>
  		</xforms:group>
  		<xforms:trigger>
	        <xforms:label>Fire Custom Event</xforms:label>
	        <xforms:action ev:event="DOMActivate">
				<xforms:dispatch name="custom-event" target="model1" cancelable="true()"/>
			</xforms:action>
		</xforms:trigger>
		
  </body>
</html>
