1 <?xml version="1.0" encoding="iso-8859-1"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 4 <html xmlns="http://www.w3.org/1999/xhtml" 5 xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> 6 <head> 7 <title>Example</title> 8 </head> 9 <body template:element="structure"> 10 <form action="" method="POST"> 11 12 <!-- Template text between the start and the interesting part. --> 13 14 <div template:element="item"> 15 <p> 16 Some item: <input template:attribute-field="value" name="..." type="text" value="..." /> 17 <input template:selector-field="remove" name="..." type="submit" value="Remove" /> 18 </p> 19 <p> 20 Item type: 21 <select template:multiple-choice-field="type,value" name="..."> 22 <option template:multiple-choice-value="type-enum,value,selected" value="..." /> 23 </select> 24 </p> 25 <p> 26 Itself containing more items: 27 </p> 28 <p template:element="subitem"> 29 Sub-item: <input template:attribute-field="subvalue" name="..." type="text" value="..." /> 30 <input template:selector-field="remove2" name="..." type="submit" value="Remove" /> 31 </p> 32 <p> 33 <input template:selector-field="add2,subitem" name="..." type="submit" value="Add subitem" /> 34 </p> 35 </div> 36 <p> 37 <input template:selector-field="add,item" name="..." type="submit" value="Add item" /> 38 </p> 39 40 <!-- Template text between the interesting part and the end. --> 41 42 </form> 43 </body> 44 </html>