<?xml-stylesheet href="../forms/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>Simple/advanced</title>
   <style type="text/css">
      body { font-family: sans-serif}
      .h {font-weight: bold}
      .xforms-input {display: block}
   </style> 

   <model xmlns="http://www.w3.org/2002/xforms">
      <instance>
	 <data xmlns=""><to/><subject/><cc/><bcc/></data>
      </instance>
   </model>
</head>
<body>
   <group xmlns="http://www.w3.org/2002/xforms">
      <switch>
	 <case id="simple">
	    <input ref="to"><label>To:</label></input>
	    <input ref="subject"><label>Subject:</label></input>
	    <trigger>
               <label>Advanced &gt;&gt;&gt;</label>
               <toggle case="advanced" ev:event="DOMActivate"/>
	    </trigger>
	 </case>
	 <case id="advanced">
	    <input ref="to"><label>To:</label></input>
	    <input ref="subject"><label>Subject:</label></input>
	    <input ref="cc"><label>Cc:</label></input>
	    <input ref="bcc"><label>Bcc:</label></input>
	    <trigger>
               <label>&lt;&lt;&lt; Simple</label>
               <toggle case="simple" ev:event="DOMActivate"/>
	    </trigger>
	 </case>
      </switch>
   </group>
</body>
</html>
