<?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>4.4.4.a xforms-valid event</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
      <xforms:instance>
      	<car xmlns="">
        	<color>green</color>
        </car>
      </xforms:instance>
      <xforms:bind id="bind_constrained" required="true()" nodeset="/car/color"/>
      <xforms:setvalue ref="color" ev:event="xforms-ready">blue</xforms:setvalue>
    </xforms:model>
  </head>
  <body>
    <xforms:group>
    	<xforms:label class="title">4.4.4.a xforms-valid event</xforms:label>
    </xforms:group>
    <xforms:group>
    	<xforms:label>
    		You must have seen an xforms-valid message.
    	</xforms:label>	
    </xforms:group>
    <xforms:input ref="/car/color" bind="bind_constrained">
        <xforms:label>Car color</xforms:label>
        <xforms:action ev:event="xforms-valid">
			<xforms:message level="modal">xforms-valid</xforms:message>
        </xforms:action>
    </xforms:input>
	
  </body>
</html>
