<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" 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">
	<head>
		<title>6.1.1.a type property</title>
		<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
		<xforms:model id="model-001">
			<xforms:instance xmlns="">
				<person>
					<month/>
					<year xsi:type="xsd:gYear"/>
				</person>
			</xforms:instance>
			<xforms:bind id="month_bind" type="xsd:gMonth" nodeset="/person/month"/>
		</xforms:model>
	</head>
	<body>
	    <xforms:group>
		    <xforms:label class="title">6.1.1.a type property</xforms:label>
		</xforms:group>
		<xforms:group>
			<xforms:label>
			  When you activate the Check Month trigger you must see a message that says "You have entered 
			  a valid gMonth". 
			  When you activate the Check Year trigger you must see a message that says "You have entered 
			  a valid gYear". 
			</xforms:label>	
		</xforms:group>
		<xforms:group>
			<xforms:input bind="month_bind">
				<xforms:label>Month : </xforms:label>
				<xforms:action ev:event="xforms-valid">
					<xforms:message level="modal">You have entered a valid gMonth</xforms:message>
        		</xforms:action>
			</xforms:input>

			<xforms:input ref="/person/year">
				<xforms:label>Year : </xforms:label>
				<xforms:action ev:event="xforms-valid">
					<xforms:message level="modal">You have entered a valid gYear</xforms:message>
        		</xforms:action>
			</xforms:input>
			
			<xforms:trigger>
				<xforms:label>Check Month</xforms:label>
				<xforms:setvalue ref="/person/month" ev:event="DOMActivate">--04</xforms:setvalue>
			</xforms:trigger>
			
			<xforms:trigger>
				<xforms:label>Check Year</xforms:label>
				<xforms:setvalue ref="/person/year" ev:event="DOMActivate">1999</xforms:setvalue>
			</xforms:trigger>
		</xforms:group>
			
			
	</body>
</html>
