<?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>7.11.1.a choose() function</title>
        <link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
        <xforms:model>
            <xforms:instance xmlns="">
                <petlist>
                    <dogs>
                        <dog name="Benji"/>
                        <dog name="Cujo"/>
                        <dog name="Lassie"/>
                    </dogs>
                    <cats>
                        <cat name="Garfield"/>
                        <cat name="Heathcliff"/>
                        <cat name="Felix"/>
                        <cat name="Tom"/>
                    </cats>
                </petlist>
            </xforms:instance>
        </xforms:model>
    </head>
    <body>
        <xforms:group>
            <xforms:label class="title">7.11.1.a choose() function</xforms:label>
        </xforms:group>
        <xforms:group>
            <xforms:label>
              You must see the values "Garfield", "Heathcliff", "Felix", 
              and "Tom" output from the Nodeset output control. 
            </xforms:label>
        </xforms:group>
        <xforms:repeat nodeset="choose(count(dogs/dog) &gt; count(cats/cat), dogs/dog, cats/cat)">
            <xforms:output ref="@name">
                <xforms:label>Nodeset : </xforms:label>
            </xforms:output>
        </xforms:repeat>
        
    </body>
</html>
