<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../xsltforms/xsltforms.xsl" type="text/xsl"?>
<?xsltforms-options debug="no"?>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/xforms"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<head>
	<title>Switch1</title>
	<style type="text/css">
	body { font-family: sans-serif}
	label { display: inline-block; width: 6em; margin: 0 1em; text-align: right }
	.h {font-weight: bold}
	</style> 

	<xf:model>
	</xf:model>
</head>
<body>
<xf:switch>
   <xf:case id="start">
      <xf:group>
         <xf:label class="h">About you</xf:label>
         <xf:input ref="name"><xf:label>Name:</xf:label></xf:input><br/>
         <xf:input ref="city"><xf:label>City:</xf:label></xf:input><br/>
         <xf:input ref="email"><xf:label>Email:</xf:label></xf:input>
      </xf:group>
      <xf:trigger>
         <xf:label>Next</xf:label>
         <xf:toggle case="preferences" ev:event="DOMActivate"/>
      </xf:trigger>
   </xf:case>
   <xf:case id="preferences" selected="true">
      <xf:group>
         <xf:label class="h">Your preferences</xf:label>
         <xf:input ref="food"><xf:label>Food:</xf:label></xf:input><br/>
         <xf:input ref="drink"><xf:label>Drink:</xf:label></xf:input><br/>
         <xf:input ref="music"><xf:label>Music:</xf:label></xf:input>
      </xf:group>
      <xf:trigger>
         <xf:label>Back</xf:label>
         <xf:toggle case="start" ev:event="DOMActivate"/>
      </xf:trigger>
      <xf:trigger>
         <xf:label>Next</xf:label>
         <xf:toggle case="start" ev:event="DOMActivate"/>
      </xf:trigger>
   </xf:case>
   <xf:case id="history">
   </xf:case>
</xf:switch>
</body>
</html>
