paulb@219 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@219 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
paulb@219 | 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
paulb@219 | 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
paulb@219 | 5 | xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> |
paulb@219 | 6 | <head> |
paulb@219 | 7 | <title>Dictionary Lookup</title> |
paulb@219 | 8 | <script type="text/javascript" src="scripts/sarissa.js"> </script> |
paulb@219 | 9 | <script type="text/javascript" src="scripts/XSLForms.js"> </script> |
paulb@219 | 10 | </head> |
paulb@219 | 11 | <body template:element="words"> |
paulb@219 | 12 | <form action="" method="POST"> |
paulb@219 | 13 | |
paulb@219 | 14 | <div template:element="entry"> |
paulb@219 | 15 | <p> |
paulb@219 | 16 | Word: <input template:attribute="word" name="{template:this-attribute()}" type="text" value="{$this-value}" |
paulb@219 | 17 | onkeypress="requestUpdate( |
paulb@219 | 18 | 'entry', |
paulb@219 | 19 | '{template:this-attribute()}', |
paulb@219 | 20 | '{template:other-elements(matches)}', |
paulb@219 | 21 | '{template:other-elements(matches)}', |
paulb@219 | 22 | '/words/entry/matches')" /> |
paulb@219 | 23 | <input name="search={template:this-element()}" type="submit" value="Search" /> |
paulb@219 | 24 | <input name="remove={template:this-element()}" type="submit" value="Remove" /> |
paulb@219 | 25 | </p> |
paulb@219 | 26 | <p> |
paulb@219 | 27 | Matches: |
paulb@219 | 28 | <select id="{template:this-element()}" template:id="entry-node" template:element="matches" name="{template:new-attribute('word')}"> |
paulb@219 | 29 | <option template:element="match-enum" template:expr="@word = ../@word" template:expr-attr="selected" |
paulb@219 | 30 | template:value="@word" value="{@word}" /> |
paulb@219 | 31 | </select> |
paulb@219 | 32 | </p> |
paulb@219 | 33 | </div> |
paulb@219 | 34 | <p> |
paulb@219 | 35 | <input name="add={template:this-element()}" type="submit" value="Add item" /> |
paulb@219 | 36 | </p> |
paulb@219 | 37 | |
paulb@219 | 38 | </form> |
paulb@219 | 39 | </body> |
paulb@219 | 40 | </html> |