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>Dictionary Lookup</title> 8 <script type="text/javascript" src="scripts/sarissa.js"> </script> 9 <script type="text/javascript" src="scripts/XSLForms.js"> </script> 10 </head> 11 <body template:element="words"> 12 <form action="" method="POST"> 13 14 <div template:element="entry"> <!-- id="{template:this-element()}" template:id="word-node" --> 15 <p> 16 Word: <input template:attribute-field="word" name="..." type="text" value="..." 17 onkeypress="requestUpdate( 18 'matches', 19 '{template:this-attribute()}', 20 '{template:other-elements(matches)}', 21 '{template:other-attributes('word', matches)}', 22 '{template:element-path(template:other-elements(matches))}')" /> 23 <input template:selector-field="search" name="..." type="submit" value="Search" /> 24 <input template:selector-field="remove" name="..." type="submit" value="Remove" /> 25 </p> 26 <p id="{template:this-element()}" template:id="matches-node" template:element="matches"> 27 Matches: 28 <select template:multiple-choice-field="-,word" name="..."> 29 <!-- onchange="requestUpdate( 30 'word', 31 '{template:new-attribute('word')}', 32 '{template:other-elements(..)}', 33 '{template:other-attributes('word', ..)}', 34 '/words/entry')" --> 35 <option template:multiple-choice-value="match-enum,word,selected" value="..." /> 36 </select> 37 </p> 38 </div> 39 <p> 40 <input template:selector-field="add,entry" name="..." type="submit" value="Add item" /> 41 </p> 42 43 </form> 44 </body> 45 </html>