<?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:sample="http://www.agencexml.com/sample"
	 >
   <head>
      <title>Address Form</title>
      <xf:model>
         <xf:instance>
            <sample:Address>
               <sample:LocationStreetFullText />
               <sample:LocationCityName />
               <sample:LocationStateName />
               <sample:LocationPostalID />
            </sample:Address>
         </xf:instance>
      </xf:model>
   </head>
   <body>
			<div id="xformControl">
				<span>
					<input type="checkbox" onclick="$('console').style.display = this.checked? 'block' : 'none';"  checked="checked"/> Debug
				</span>
			</div>
      <xf:group ref="/sample:Address">
         <fieldset>
            <legend>Mailing Address</legend>
            <xf:input ref="sample:LocationStreetFullText">
               <xf:label>Street: </xf:label>
            </xf:input>
            <br />
            <xf:input ref="sample:LocationCityName">
               <xf:label>City:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="sample:LocationStateName">
               <xf:label>State:</xf:label>
            </xf:input>
            <br />
            <xf:input ref="sample:LocationPostalID">
               <xf:label>Postal Code:</xf:label>
            </xf:input>
         </fieldset>
      </xf:group>
			<div id="console"></div>
   </body>
</html>
