<?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
<html
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xf="http://www.w3.org/2002/xforms" 
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:ev="http://www.w3.org/2001/xml-events"
	  xmlns:sample="http://www.agencexml.com/sample"
	 >
   <head>
      <title>Initial Cursor Positioning</title>
      <xf:model>
          <xf:instance>
              <sample:data>
                  <sample:element1/>
              </sample:data>
          </xf:instance>
 
      <xf:action ev:event="xforms-ready">
         <xf:setfocus control="first-field" />
      </xf:action>
      </xf:model>
   </head>
   <body>
			<div id="xformControl">
				<span>
					<input type="checkbox" onclick="$('console').style.display = this.checked? 'block' : 'none';"  checked="checked"/> Debug
				</span>
			</div>
      <h3>Initial Cursor Positioning</h3>
      <xf:input ref="sample:element1" id="first-field">
         <xf:label>Element One:</xf:label>
      </xf:input>
			<div id="console"></div>
   </body>
</html>
