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"> 15 <p> 16 Word: <input template:attribute="word" name="{template:this-attribute()}" type="text" value="{$this-value}" 17 onkeypress="requestUpdate( 18 'entry', 19 '{template:this-attribute()}', 20 '{template:other-elements(matches)}', 21 '{template:other-elements(matches)}', 22 '/words/entry/matches')" /> 23 <input name="search={template:this-element()}" type="submit" value="Search" /> 24 <input name="remove={template:this-element()}" type="submit" value="Remove" /> 25 </p> 26 <p> 27 Matches: 28 <select id="{template:this-element()}" template:id="entry-node" template:element="matches" name="{template:new-attribute('word')}"> 29 <option template:element="match-enum" template:expr="@word = ../@word" template:expr-attr="selected" 30 template:value="@word" value="{@word}" /> 31 </select> 32 </p> 33 </div> 34 <p> 35 <input name="add={template:this-element()}" type="submit" value="Add item" /> 36 </p> 37 38 </form> 39 </body> 40 </html>