<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xf="http://www.w3.org/2002/01/xforms" >
  <head>
    <title>Example of XForms in XHTML</title>
    <xf:model>
      <xf:instance>  </xf:instance>
      <xf:schema />
      <xf:submitInfo method="post" 
                   action="http://www.java.utoronto.ca:5799/cgi-bin/form1" id="myForm" />
    </xf:model>
  </head>
  <body>
    <h1> Example of the Form</h1>
    <p>Here is a simple example XForm form, intermingled with XHTML. </p>
    <group xmlns="http://www.w3.org/2002/01/xforms" ref="purchaseInfo">
      <selectOne ref="@ptype">
        <caption>Pet Type you Want to Buy</caption>
        <choices>
          <item>
            <caption>Dogs</caption> <value>lupus</value>
          </item>
          <item>
            <caption>Cats</caption> <value>feline</value>
          </item>
          <item>
            <caption>Frogs</caption> <value>froggies</value>
          </item>
        </choices>
      </selectOne>
      <input ref="CardNo">
        <caption>Credit Card</caption>
      </input>
      <input ref="Exp">
        <caption>Expiry Date</caption>
      </input>
      <submit submitInfo="myForm">
        <caption>Buy that Pet!</caption>
      </submit>
    </group>
  </body>
</html>

