<?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:xhtml="http://www.w3.org/1999/xhtml">
  <head>
    <title>3.3.4.b more bind element examples</title>
    <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    <xforms:model>
      <xforms:instance id="i_001">
        <car xmlns="">
		  <avg>not 3000</avg>
		  <prices>
		    <price>1000.00</price>
		    <price>2000.00</price>
		    <price>3000.00</price>
		  </prices>
        </car>
      </xforms:instance>
      <xforms:bind id="bind_001" nodeset="avg">
        <!-- bind with no nodeset -->
        <xforms:bind calculate="avg(../prices/price)"/>
      </xforms:bind>
    </xforms:model>
  </head>
  <body>
  	<xforms:group>
  		<xforms:label class="title">3.3.4.b more bind element examples</xforms:label>
  	</xforms:group>
	<xforms:group>
	  <xforms:label>You must see the value "2000":</xforms:label>
    <xforms:output bind="bind_001">
        <xforms:label>Average car price: </xforms:label>
    </xforms:output>
	</xforms:group>
  </body>
</html>
