<?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.1.c value attribute has precedence in name element</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="xforms-rebuild">xforms-rebuild</xforms:message>
			<xforms:message level="modal" ev:event="custom-event">custom-event</xforms:message>
    	</xforms:model>
  	</head>
  	<body>
  		<xforms:group>
	  		<xforms:label class="title">10.8.1.c value attribute has precedence in name element</xforms:label>
	  	</xforms:group>	
  		<xforms:group>
  			<xforms:label>
  			  After you activate the Rebuild trigger you must see an xforms-rebuild message. You must not see 
  			  a custom-event message. 
			</xforms:label>
  		</xforms:group>
		<xforms:trigger>
	        <xforms:label>Rebuild</xforms:label>
	        <xforms:action ev:event="DOMActivate">
				<xforms:dispatch target="mymodel">
					<xforms:name value="'xforms-rebuild'">custom-event</xforms:name>
				</xforms:dispatch>
			</xforms:action>
		</xforms:trigger>

  </body>
</html>
