<?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>3.2.3.f single-node binding - invalid model IDREF</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model id="car1">
      <xforms:instance id="i_001">
        <car xmlns="">
          <make>Honda</make>
          <year>2002</year>
          <color>white</color>
          <hp>150</hp>
        </car>
      </xforms:instance>
    </xforms:model>
    <xforms:model id="car2">
      <xforms:instance id="i_002">
        <car xmlns="">
          <make>Toyota</make>
          <year>2004</year>
          <color>midnight blue</color>
          <hp>175</hp>
        </car>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
	<xforms:group>
		<xforms:label class="title">3.2.3.f single-node binding - invalid model IDREF</xforms:label>
	</xforms:group>
  	<xforms:group>
  		<xforms:label>
  		  You must have seen an xforms-binding-exception message or a fatal error due to an 
		  xforms-binding-exception. 
  		</xforms:label>
  	</xforms:group>    
    <!-- model attribute doesn't point to a model element, should fail -->
    <xforms:input model="myInvalidModel" ref="/car/hp">
        <xforms:label>
        	<!-- model does not point to a model element,  -->
        </xforms:label>
        <xforms:action ev:event="xforms-binding-exception">
        	<xforms:message level="modal">xforms-binding-exception</xforms:message>
        </xforms:action>
    </xforms:input>

	
  </body>
</html>
