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