<?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.4.13.a DOMFocusIn 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:setfocus control="input_year" ev:event="xforms-ready"/>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
    	<xforms:label class="title">4.4.13.a DOMFocusIn event</xforms:label>
    </xforms:group>
    <xforms:group>
    	<xforms:label>
	    	You must have seen a DOMFocusIn message.
	    </xforms:label>	
    </xforms:group>
    <xforms:input id="input_make" ref="/car/make">
    	<xforms:label>Car make</xforms:label>
    </xforms:input>
    <xforms:input id="input_year" ref="/car/year">
       	<xforms:label>Car year</xforms:label>
       	<xforms:action ev:event="DOMFocusIn">
        	<xforms:message level="modal">DOMFocusIn</xforms:message>
          	<!-- change focus back to the other form -->
          	<xforms:setfocus control="input_make"/>
       	</xforms:action>
    </xforms:input>
	
  </body>
</html>
