1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/Dictionary/Resources/words_template.xhtml Fri Sep 09 17:33:19 2005 +0000
1.3 @@ -0,0 +1,40 @@
1.4 +<?xml version="1.0" encoding="iso-8859-1"?>
1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
1.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1.7 +<html xmlns="http://www.w3.org/1999/xhtml"
1.8 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
1.9 +<head>
1.10 + <title>Dictionary Lookup</title>
1.11 + <script type="text/javascript" src="scripts/sarissa.js"> </script>
1.12 + <script type="text/javascript" src="scripts/XSLForms.js"> </script>
1.13 +</head>
1.14 +<body template:element="words">
1.15 +<form action="" method="POST">
1.16 +
1.17 +<div template:element="entry">
1.18 + <p>
1.19 + Word: <input template:attribute="word" name="{template:this-attribute()}" type="text" value="{$this-value}"
1.20 + onkeypress="requestUpdate(
1.21 + 'entry',
1.22 + '{template:this-attribute()}',
1.23 + '{template:other-elements(matches)}',
1.24 + '{template:other-elements(matches)}',
1.25 + '/words/entry/matches')" />
1.26 + <input name="search={template:this-element()}" type="submit" value="Search" />
1.27 + <input name="remove={template:this-element()}" type="submit" value="Remove" />
1.28 + </p>
1.29 + <p>
1.30 + Matches:
1.31 + <select id="{template:this-element()}" template:id="entry-node" template:element="matches" name="{template:new-attribute('word')}">
1.32 + <option template:element="match-enum" template:expr="@word = ../@word" template:expr-attr="selected"
1.33 + template:value="@word" value="{@word}" />
1.34 + </select>
1.35 + </p>
1.36 +</div>
1.37 +<p>
1.38 + <input name="add={template:this-element()}" type="submit" value="Add item" />
1.39 +</p>
1.40 +
1.41 +</form>
1.42 +</body>
1.43 +</html>