<?xml version="1.0"?>
<!DOCTYPE form SYSTEM "transForm.dtd">
<form id="blah">

  <format id="us-phone">(###) ###-####</format>
  <constraint id="must-be-present">/.+/</constraint>
  <constraint id="numeric">/\d+/</constraint>
  <group>
    I, <fillin id="name" length="30" paper-infix="print full name" infix="full name" must-be-present="1"/>, do hereby swear that I have yellow polka-dotted underwear.<br/>
   Pick a number between 1 and 10: <fillin id="random" length="2" constraint="numeric"/>
  </group>
 
  <group label="Contact information">
    <subgroup label="Address" box="1">
      <fillin id="addr-street" length="30" label="Street" constraint="must-be-present" />
      <fillin id="addr-apt" length="3" label="Apt." /><br/>
      <fillin id="addr-city" length="20" label="City" constraint="must-be-present" />
      <fillin id="addr-post" length="15" label="Zip or Postal Code" constraint="must-be-present" />
    </subgroup>
  <fillinfmt id="phone" class="phone-number" format="us-phone" label="Telephone" must-be-present="1"/>
  <fillinfmt id="fax" class="phone-number" format="us-phone" label="Facimile"/>
  <fillin id="email" length="30" label="Electronic Mail" constraint="must-be-present" />
  </group> 

  <group box="true" label="Tricky personality questions">
    <checkgroup id="hobbies" infix="pick all that apply" label="Choose the hobbies that you do more than five times a week" class="pickn">
      <option id="tennis" label="Tennis"/>
      <option id="computers" label="Computers"/>
      <option id="spam" label="Spam, spam Wonderful spam"/>
    </checkgroup>
    <checkgroup id="income" infix="pick one" label="Choose your income bracket per month" class="pick1">
      <option id="low" label="$0-$1000"/>
      <option id="medium" label="$1001-$100000"/>
      <option id="high" label="$100001-$1000000000"/>
    </checkgroup>
  </group>

</form>
