<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="w3c-xforms.css" type="text/css"?>
<?xml-stylesheet href="testsuite-xforms.css" type="text/css"?>
<html:html xmlns="http://www.w3.org/2002/xforms" 
	xmlns:ev="http://www.w3.org/2001/xml-events" 
	xmlns:html="http://www.w3.org/1999/xhtml"
	xmlns:ui="ui">
	<html:head>
		<html:title>Test Suite Managing XForms</html:title>
		<model id="testChart">
			<instance src="chapter7.html" id="default"/>
			<submission action="http://jigteam.w3.org/MarkUp/Forms/Test/chapter7.html" id="submit1" method="put" mediatype="text/html" /> 
		</model>
	</html:head>
	<html:body>
		<group>
			<trigger class="two-cell">
				<label>Save Changes</label> 
				<hint>Save and Refresh</hint> 
				<send ev:event="click" submission="submit1" /> 
			</trigger>			
			<input ref="instance('default')/html:body/html:p/html:span[2]" class="three-cell">
				<label>Last modified (click to update):</label>
				<setvalue ev:event="click" value="now()" ref="instance('default')/html:body/html:p/html:span[2]" />
			</input>
		</group>
		<html:h1>Step 1: Manage Test Suite</html:h1>
		<group>
			<group>
				<input ref="instance('default')/html:head/html:base/@href" class="five-cell">
					<label>BASE HREF:</label>
				</input>
			</group>
			<group>
				<input class="five-cell" ref="instance('default')/html:head/html:title">
					<label>&lt;TITLE&gt;</label>
				</input>
			</group>
			<group>
				<input class="five-cell" ref="instance('default')/html:body/html:h1">
					<label>&lt;H1&gt;</label>
				</input>
			</group>
		</group>
		<repeat nodeset="instance('default')/html:body/html:div" id="repeat-sections">
			<group class="section">
				<group>
					<input ref="html:h3/html:a" class="three-cell">
						<label>Section Name:</label>
					</input>
					<trigger class="one-cell">
						<label>Delete</label>
						<hint>Delete Section</hint>
						<delete at="index('repeat-sections')" ev:event="click" nodeset="instance('default')/html:body/html:div"/>
					</trigger>
					<trigger class="one-cell">
						<label>Insert</label>
						<hint>Insert Section (after this one)</hint>
						<insert at="index('repeat-sections')" ev:event="click" nodeset="instance('default')/html:body/html:div" position="after"/>
					</trigger>
				</group>
				<group>
					<input ref="html:h3/html:a/@href" class="five-cell">
						<label>Section URI:</label>
					</input>
				</group>
				<repeat nodeset="html:table/html:tr" id="repeat-test-cases">
				<group>
					<input ref="html:td[1]" class="one-cell">
						<label>Test ID:</label>
					</input>
					<input ref="html:td[3]/html:a/@href" class="two-cell">
						<label>Test Case URI:</label>
					</input>
					<trigger class="one-cell">
						<label>Delete</label>
						<hint>Delete Test</hint>
						<delete at="index('repeat-test-cases')" ev:event="click" nodeset="instance('default')/html:body/html:div[index('repeat-sections')]/html:table/html:tr"/>
					</trigger>
					<trigger class="one-cell">
						<label>Insert</label>
						<hint>Insert Test (after this one)</hint>
						<insert at="index('repeat-test-cases')" ev:event="click" nodeset="instance('default')/html:body/html:div[index('repeat-sections')]/html:table/html:tr" position="after"/>
					</trigger>
				</group>
				</repeat>
			</group>
		</repeat>
	</html:body>
</html:html>

