<?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:test="http://example.org" 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>7.2.e context size and position</title>
		<link rel="stylesheet" href="../../driverPages/forms/TestSuite11.css" type="text/css"/>
		<xforms:model>
			<xforms:instance>
				<test:root>
					<test:child/>
					<test:child/>
					<test:child/>
				</test:root>
			</xforms:instance>
			<xforms:bind nodeset="test:child" calculate="position() + last()"/>
		</xforms:model>
	</head>
	<body>
		<xforms:group>
			<xforms:label class="title">
				7.2.e context size and position
			</xforms:label>
		</xforms:group>	
		<xforms:group>
			<xforms:label>
			You must see a value of "4" for the first Total output, a value of "5" for the second 
			Total output, and a value of "6" for the third Total output. 
			<!-- 
				Rule 5: Create an instance whose root element contains three
				children. Write a bind that attaches to all the children and
				assigns a calculate of position()+last(). Bind outputs to
				each child and ensure that the outputs display 4, 5 and 6.
				The last() is uniformly 3 and the position() increases from 1
			-->
			</xforms:label>	
		</xforms:group>
		<xforms:repeat nodeset="test:child">
			<xforms:output ref=".">
				<xforms:label>Total : </xforms:label>
			</xforms:output>
		</xforms:repeat>
		
	</body>
</html>
