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>Recursive Example</title> 8 </head> 9 <body template:element="recursive"> 10 <form action="" method="POST"> 11 12 <!-- Template text between the start and the interesting part. --> 13 14 <div template:element="list"> 15 <p>This is a list called <input template:attribute-field="name" name="..." type="text" value="..."/></p> 16 <p> 17 <input template:selector-field="remove" name="..." type="submit" value="Remove list"/> 18 <input template:selector-field="add-item,item" name="..." type="submit" value="Add item to list"/> 19 </p> 20 <ul> 21 <li template:element="item"> 22 <p>This is an item called <input template:attribute-field="name" name="..." type="text" value="..."/></p> 23 <p> 24 <input template:selector-field="remove" name="..." type="submit" value="Remove item"/> 25 <input template:selector-field="add-list,list" name="..." type="submit" value="Add list here"/> 26 </p> 27 <p template:element="list">List goes here...</p> 28 </li> 29 </ul> 30 </div> 31 <p> 32 <input template:selector-field="add-list,list" name="..." type="submit" value="Add list" /> 33 </p> 34 35 <!-- Template text between the interesting part and the end. --> 36 37 </form> 38 </body> 39 </html>