<?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>5.2.5.a yearMonthDuration datatype</title>
  	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
  	<xforms:model>
  		<xforms:instance xmlns="">
  			<car>
  				<leaseLength/>
  			</car>
  		</xforms:instance>
  		<xforms:bind id="yearMonth_bind" nodeset="/car/leaseLength" type="xforms:yearMonthDuration" required="true()"/>
  		<xforms:setvalue ref="leaseLength" ev:event="xforms-ready">P100Y1M</xforms:setvalue>
  	</xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">5.2.5.a yearMonthDuration datatype</xforms:label>
  	</xforms:group>
  	<xforms:group>
  		<xforms:label>
	  		You must have seen the message "You entered a valid yearMonthDuration".
  		</xforms:label>
  	</xforms:group>

  		<xforms:input bind="yearMonth_bind">
  			<xforms:label>Length of car lease (yearMonthDuration)</xforms:label>
  			<xforms:action ev:event="xforms-valid">
  				<xforms:message level="modal">You entered a valid yearMonthDuration</xforms:message>
  			</xforms:action>
		</xforms:input>

		
  </body>
</html>
