paulb@491 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@491 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
paulb@491 | 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
paulb@491 | 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
paulb@491 | 5 | xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> |
paulb@491 | 6 | <head> |
paulb@491 | 7 | <title>Recursive Example</title> |
paulb@491 | 8 | </head> |
paulb@491 | 9 | <body template:element="recursive"> |
paulb@491 | 10 | <form action="" method="POST"> |
paulb@491 | 11 | |
paulb@491 | 12 | <!-- Template text between the start and the interesting part. --> |
paulb@491 | 13 | |
paulb@491 | 14 | <div template:element="list"> |
paulb@491 | 15 | <p>This is a list called <input template:attribute-field="name" name="..." type="text" value="..."/></p> |
paulb@491 | 16 | <p> |
paulb@491 | 17 | <input template:selector-field="remove" name="..." type="submit" value="Remove list"/> |
paulb@491 | 18 | <input template:selector-field="add-item,item" name="..." type="submit" value="Add item to list"/> |
paulb@491 | 19 | </p> |
paulb@491 | 20 | <ul> |
paulb@491 | 21 | <li template:element="item"> |
paulb@491 | 22 | <p>This is an item called <input template:attribute-field="name" name="..." type="text" value="..."/></p> |
paulb@491 | 23 | <p> |
paulb@491 | 24 | <input template:selector-field="remove" name="..." type="submit" value="Remove item"/> |
paulb@491 | 25 | <input template:selector-field="add-list,list" name="..." type="submit" value="Add list here"/> |
paulb@491 | 26 | </p> |
paulb@491 | 27 | <p template:element="list">List goes here...</p> |
paulb@491 | 28 | </li> |
paulb@491 | 29 | </ul> |
paulb@491 | 30 | </div> |
paulb@491 | 31 | <p> |
paulb@491 | 32 | <input template:selector-field="add-list,list" name="..." type="submit" value="Add list" /> |
paulb@491 | 33 | </p> |
paulb@491 | 34 | |
paulb@491 | 35 | <!-- Template text between the interesting part and the end. --> |
paulb@491 | 36 | |
paulb@491 | 37 | </form> |
paulb@491 | 38 | </body> |
paulb@491 | 39 | </html> |