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="word" name="{template:this-attribute()}" type="text" value="{$this-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 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="matches-node" template:element="matches" name="{template:new-attribute('word')}"> 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:element="match-enum" template:expr="@word = ../@word" template:expr-attr="selected" 36 template:value="@word" value="{@word}" /> 37 </select> 38 </p> 39 </div> 40 <p> 41 <input name="add={template:this-element()}" type="submit" value="Add item" /> 42 </p> 43 44 </form> 45 </body> 46 </html>