Give Feedback example from X-Smiles

<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="forms.xsl"?>
<form xmlns:xfm="http://www.w3.org/2001/11/xforms-editors-copy" height="30cm">

  <xfm:model id="form1">
  <xfm:submission id="submit1" method="postxml" 
    target="http://localhost:8080/examples/servlet/XFormsServlet"/>
    <xfm:schema src="simple1.xsd"/>
    <xfm:instance id="instance1" xmlns="">
      <?xml2-stylesheet type="text/xsl" href="../demo/fo/submit.xsl"?>
      <purchaseOrder>
        <shipTo>
          <firstname></firstname>
          <lastname></lastname>
          <email></email>
          <organization></organization>
          <subject></subject>
          <comment></comment>
        </shipTo>
        <itemlist>xsmiles_personal xsmiles_support</itemlist>
      </purchaseOrder>
    </xfm:instance>
  </xfm:model>
  
  <h1>X-Smiles Feedback</h1>
  
  <xfm:input xform="form1" ref="purchaseOrder/shipTo/firstname" cols="30">
    <xfm:label>FIRST NAME:</xfm:label>
  </xfm:input>
  
  <xfm:input ref="purchaseOrder/shipTo/lastname" cols="30">
    <xfm:label>LAST NAME:</xfm:label>
  </xfm:input>
  
  <xfm:input xform="form1" ref="purchaseOrder/shipTo/email" cols="30">
    <xfm:label>EMAIL:</xfm:label>
  </xfm:input>
  
  <xfm:input xform="form1" ref="purchaseOrder/shipTo/organization" cols="30">
    <xfm:label>ORGANIZATION:</xfm:label>
  </xfm:input>
  
  <xfm:select1 xform="form1" ref="purchaseOrder/shipTo/subject" 
    style="list-ui:radio;hip:hop">
    <xfm:hint>Please select one</xfm:hint>
    <xfm:label>SUBJECT:</xfm:label>
    <xfm:item>Compliment</xfm:item>
    <xfm:item>Opinion</xfm:item>
    <xfm:item>Criticism</xfm:item>
    <xfm:item>Suggestion</xfm:item>
    <xfm:item>Error</xfm:item>
  </xfm:select1>
  
  <xfm:textarea xform="form1" ref="purchaseOrder/shipTo/comment" rows="5" 
    style="font-size:10px; font-weight:bold; color:red; width:200px; height:70px;">
      <xfm:label>Please enter your comments in the area below:</xfm:label>
  </xfm:textarea>
  
  <xfm:submit name="Submit" ref="test" submission="submit1">
    <xfm:hint>Click to submit</xfm:hint>
    <xfm:label>Submit</xfm:label>
  </xfm:submit>
  
</form>

    

Previous | Next | Top | Cafe con Leche

Copyright 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified March 10, 2005