<?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" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  	<head>
    	<title>9.3.6.a itemset element example</title>
    	<link rel="stylesheet" href="../../../driverPages/forms/TestSuite11.css" type="text/css"/>
    	<xforms:model id="cone">
       		<xforms:instance xmlns="">
				<icecream>
					<order><type/></order>
				</icecream>
       		</xforms:instance>
    	</xforms:model>
    	<xforms:model id="flavors">
    		<xforms:instance xmlns="">
    			<flavors>
    				<flavor type="v">
    					<description>Vanilla</description>
    					<type>v</type>
    				</flavor>
    				<flavor type="s">
    					<description>Strawberry</description>
    					<type>s</type>
    				</flavor>
    				<flavor type="c">
    					<description>Chocolate</description>
    					<type>c</type>
    				</flavor>
    			</flavors>
    		</xforms:instance>
    	</xforms:model>
  	</head>
  	<body>
  		<xforms:group>
  			<xforms:label class="title">9.3.6.a itemset element example</xforms:label>
  		</xforms:group>	
  		<xforms:group>
  			<xforms:label>
  			  You must see two select controls that both contain the values "Vanilla", "Strawberry", 
  			  and "Chocolate". 
	  		</xforms:label>
  		</xforms:group>
		<xforms:group>
			<xforms:label>
				List 1 (itemset element) : 
			</xforms:label>
			<xforms:select1 model="cone" ref="/icecream/order">
				<xforms:label/>
				<xforms:itemset model="flavors" nodeset="/flavors/flavor">
					<xforms:label ref="description"/>
					<xforms:copy ref="type"/>
				</xforms:itemset>
			</xforms:select1>
		</xforms:group>
	    <xforms:group>	
	    	<xforms:label>
	    		List 2 (choice element) : 
	    	</xforms:label>	
			<xforms:select model="cone" ref="/icecream/order/type">
				<xforms:label/>
				<xforms:choices>
					<xforms:item>
						<xforms:label>Vanilla</xforms:label>
						<xforms:value>v</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Strawberry</xforms:label>
						<xforms:value>s</xforms:value>
					</xforms:item>
					<xforms:item>
						<xforms:label>Chocolate</xforms:label>
						<xforms:value>c</xforms:value>
					</xforms:item>
				</xforms:choices>
			</xforms:select>
	    </xforms:group>
		
  </body>
</html>
