<?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>9.1.1.c focus set to group element</title>
    	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model>
       	<xforms:instance xmlns="">
	   			<order>
	   				<shipTo>
	   					<street/>
	   					<city/>
	   				</shipTo>
	   				<shipDate/>
	   				<billTo>
	   					<street/>
	   					<city/>
	   				</billTo>
	   			</order>
       		</xforms:instance>
    	</xforms:model>
  	</head>
  	<body>
  	    <xforms:group>
  		    <xforms:label class="title">9.1.1.c focus set to group element</xforms:label>
  		</xforms:group>
  		<xforms:group>
  			<xforms:label>
  				When you activate the Set Focus To Group 2 trigger it will set the focus to the second group. 
  				The focus (your cursor) must be inside the Street Name 2 input control of the Billing 
  				Address group. 
  			</xforms:label>
  		</xforms:group>
		<xforms:group id="g1">
			<xforms:label>Shipping Address (group 1)</xforms:label>
			<xforms:input ref="/order/shipTo/street">
 				<xforms:label>Street Name 1:</xforms:label>
 	     	</xforms:input>
 	     	<xforms:input ref="/order/shipTo/city">
 	     		<xforms:label>City 1:</xforms:label>
 	     	</xforms:input>
		</xforms:group>
		<xforms:group id="g2">
			<xforms:label>Billing Address (group 2)</xforms:label>
			<xforms:input ref="/order/billTo/street">
 				<xforms:label>Street Name 2:</xforms:label>
 	     	</xforms:input>
 	     	<xforms:input ref="/order/billTo/city">
 	     		<xforms:label>City 2:</xforms:label>
 	     	</xforms:input>
		</xforms:group>
		<xforms:trigger>
			<xforms:label>Set Focus To Group 2</xforms:label>
			<xforms:action ev:event="DOMActivate">
				<xforms:setfocus control="g2"/>
			</xforms:action>
		</xforms:trigger>
		
  </body>
</html>
