The complete doughnut order document

<?xml version="1.0"?>
<!-- <!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "xhtml1-strict.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xf="http://www.w3.org/2002/xforms"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
  <head>
    <title>Doughnuts!</title>
    <model xmlns="http://www.w3.org/2002/xforms" id="p1">
    <instance>
       <doughnuts xmlns="">
        <quantity xsi:type="xsd:nonNegativeInteger"/>
       </doughnuts>
    </instance>
    <submission action="http://sinex.tml.hut.fi:8080/xforms/request"
      method="post" id="q0" />
    </model>
  </head>
  <body>
    <h1>Order Doughnuts</h1>
  
  <input xmlns="http://www.w3.org/2002/xforms"
    xmlns:ev="http://www.w3.org/2001/xml-events"
    model="p1" 
    ref="/doughnuts/quantity" 
    class="edit" >
    <label>Quantity</label>
  </input>
  
  <p>
    I can put any XHTML markup and text here I like.
    The form can be interspersed throughout the page. 
    Namespaces are used to tell which elements are XHTML
    and which are XForms.
  </p>
  
  <submit xmlns="http://www.w3.org/2002/xforms" submission="q0">
    <label>Order</label>
  </submit>
  
  </body>
</html>

Previous | Next | Top | Cafe con Leche

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