<?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:ev="http://www.w3.org/2001/xml-events" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" xs:dummy="dummy"
xmlns:sample="http://www.agencexml.com/sample"
>
   <head>
      <title>Example using a date selector by binding an instance to an XML Schema date type</title>
      <xf:model>
         <xf:instance>
            <sample:instance>
               <sample:MyDate />
            </sample:instance>
         </xf:instance>
         <xf:bind nodeset="sample:MyDate" type="xs:date" />
      </xf:model>
   </head>
   <body>
			<div id="xformControl">
				<span>
					<input type="checkbox" onclick="$('console').style.display = this.checked? 'block' : 'none';"  checked="checked"/> Debug
				</span>
			</div>
      <p>Example of using the date selector by binding an instance to an XML Schema date type:
		<br />
         <xf:input ref="sample:MyDate">
            <xf:label>Enter a date: </xf:label>
         </xf:input>
      </p>
			<div id="console"></div>
   </body>
</html>
