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@220 | 14 | <div template:element="entry"> <!-- id="{template:this-element()}" template:id="word-node" --> |
paulb@219 | 15 | <p> |
paulb@267 | 16 | Word: <input template:attribute-field="word" name="..." type="text" value="..." |
paulb@219 | 17 | onkeypress="requestUpdate( |
paulb@220 | 18 | 'matches', |
paulb@219 | 19 | '{template:this-attribute()}', |
paulb@219 | 20 | '{template:other-elements(matches)}', |
paulb@224 | 21 | '{template:other-attributes('word', matches)}', |
paulb@486 | 22 | '{template:element-path(template:this-element())}')" /> |
paulb@267 | 23 | <input template:selector-field="search" name="..." type="submit" value="Search" /> |
paulb@267 | 24 | <input template:selector-field="remove" name="..." type="submit" value="Remove" /> |
paulb@219 | 25 | </p> |
paulb@267 | 26 | <p id="{template:this-element()}" template:id="matches-node" template:element="matches"> |
paulb@219 | 27 | Matches: |
paulb@267 | 28 | <select template:multiple-choice-field="-,word" name="..."> |
paulb@220 | 29 | <!-- onchange="requestUpdate( |
paulb@220 | 30 | 'word', |
paulb@220 | 31 | '{template:new-attribute('word')}', |
paulb@220 | 32 | '{template:other-elements(..)}', |
paulb@220 | 33 | '{template:other-attributes('word', ..)}', |
paulb@220 | 34 | '/words/entry')" --> |
paulb@267 | 35 | <option template:multiple-choice-value="match-enum,word,selected" value="..." /> |
paulb@219 | 36 | </select> |
paulb@219 | 37 | </p> |
paulb@219 | 38 | </div> |
paulb@219 | 39 | <p> |
paulb@267 | 40 | <input template:selector-field="add,entry" name="..." type="submit" value="Add item" /> |
paulb@219 | 41 | </p> |
paulb@219 | 42 | |
paulb@219 | 43 | </form> |
paulb@219 | 44 | </body> |
paulb@219 | 45 | </html> |