<?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.2.b target element has precedence over attribute</title>
    	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model id="mymodel">
       		<xforms:instance xmlns="">
				<car/>
       		</xforms:instance>
			<xforms:message level="modal" ev:event="custom-event">custom-event</xforms:message>
    	</xforms:model>
    	<xforms:model id="wrongmodel">
       		<xforms:instance xmlns="">
				<car/>
       		</xforms:instance>
			<xforms:message level="modal" ev:event="custom-event">wrong custom-event</xforms:message>
    	</xforms:model>
  	</head>
  	<body>
  		<xforms:group>
	  		<xforms:label class="title">10.8.2.b target element has precedence over attribute</xforms:label>
	  	</xforms:group>
  		<xforms:group>
  			<xforms:label>
  			  After you activate the Fire Custom Event trigger you must see a custom-event message. 
  			  If you see a wrong custom-event message you have failed this test case. 
			</xforms:label>
  		</xforms:group>
		<xforms:trigger>
	        <xforms:label>Fire Custom Event</xforms:label>
	        <xforms:action ev:event="DOMActivate">
				<xforms:dispatch target="wrongmodel" name="custom-event">
					<xforms:target>mymodel</xforms:target>
				</xforms:dispatch>
			</xforms:action>
		</xforms:trigger>
		
  </body>
</html>
