<?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.3.7.a xforms-focus event</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
      <xforms:instance>
        <car xmlns="">
        	<make/>
        	<year/>
        </car>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
    	<xforms:label class="title">4.3.7.a xforms-focus event</xforms:label>
    </xforms:group>
    <xforms:group>
    	<xforms:label>
    	  When you activate the Set Focus trigger you must see an xforms-focus message. 
    	</xforms:label>	
    </xforms:group>
    
    <xforms:trigger>
        <xforms:label>Set Focus</xforms:label>
        <xforms:action ev:event="DOMActivate">
			<xforms:setfocus control="input1"/>
		</xforms:action>
    </xforms:trigger>

	<xforms:group>
	    <xforms:input ref="/car/year" id="input1">
	        <xforms:label>Target control:</xforms:label>
			<xforms:action ev:event="xforms-focus">
				<xforms:message level="modal">xforms-focus</xforms:message>
			</xforms:action>
	    </xforms:input>
	</xforms:group>
	
  </body>
</html>
