<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE survey SYSTEM "formgen.dtd">
<survey title="Sample Poll" recipient="deans@waikato.ac.nz">
	<section title="Demographics">
		<rationale>This paragarpah is where you explain the purpose of the questions in this particular section.On this page we see questions of type "text", "checkbox" and "radio". You'll see a "Next" button at the bottom of this section which has an auto-generated javascript action to hide this section and display the next. label-for attributes are used so you can click an answer's text to select its element.</rationale>
		<question type="text" id="name">
			<text>Name</text>
		</question>
		<question type="radio" id="agegroup">
			<text>Age group</text>
			<answers>
				<option>under 15</option>
				<option>16-20</option>
				<option>21-35</option>
				<option>35-50</option>
				<option>51+</option>
			</answers>
		</question>
		<question type="checkbox" id="gadgets">
			<text>Gadgets you own</text>
			<answers>
				<option>Cellphone</option>
				<option>Desktop computer</option>
				<option>Laptop</option>
				<option>iPod/Media player</option>
			</answers>
		</question>
	</section>
	<section title="Online Access">
		<rationale>In this section we have types "select" and "textarea", as this is the last section of two we have a "Previous" button to return to the first page and a "Finish" button which is the final submit action for the form. Unique values are generated for id's of each radio and checkbox type so that the label-for actions don't collide where two questions may share an answer. Clicking a "Next" or "Previous" button simply hides and show's div's so the values you enter on a section arent lost as you navigate about.</rationale>
		<question type="select" id="history">
			<text>How long have you been using the Internet</text>
			<answers>
				<option>Never have</option>
				<option>A Month or so</option>
				<option>One to Two years</option>
				<option>Three to Four years</option>
				<option>Five or more years</option>
			</answers>
		</question>
		<question type="textarea" id="summary">
			<text>General comments</text>
		</question>
	</section>
</survey>
