<?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.2.3.a single-node binding - ref attribute</title>
        <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
        <xforms:model>
            <xforms:instance>
                <car xmlns="">
                    <make>Acura</make>
                    <year>1994</year>
                    <color>white</color>
                    <hp>120</hp>
                </car>
            </xforms:instance>
            <xforms:bind id="bind_001" nodeset="/car/year"/>
        </xforms:model>
    </head>
    <body>
        <xforms:group>
            <xforms:label class="title">3.2.3.a single-node binding - ref attribute</xforms:label>
        </xforms:group>
        <xforms:group>
        	<xforms:label>
        		<!-- ref attribute points to a valid node;  -->
        		You must see the value "120": 
        	</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:output ref="/car/hp">
                <xforms:label/>
            </xforms:output>
        </xforms:group>
        
        <xforms:group>
        	<xforms:label>
        		<!-- ref has no meaning when bind is present;  -->
        		You must see the value "1994": 
        	</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:output ref="/car/make" bind="bind_001">
                <xforms:label/>
            </xforms:output>
        </xforms:group>
        
    </body>
</html>