1.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Mon Oct 03 19:13:51 2005 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Mon Oct 03 19:14:10 2005 +0000
1.3 @@ -22,23 +22,19 @@
1.4 </tr>
1.5 <tr>
1.6 <th>Package name</th>
1.7 - <td template:attribute="name"><input type="text" size="20"
1.8 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.9 + <td><input type="text" size="20" template:attribute-field="name" name="..." value="..." /></td>
1.10 </tr>
1.11 <tr>
1.12 <th>Package version</th>
1.13 - <td template:attribute="version"><input type="text" size="10"
1.14 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.15 + <td><input type="text" size="10" template:attribute-field="version" name="..." value="..." /></td>
1.16 </tr>
1.17 <tr>
1.18 <th>Summary</th>
1.19 - <td template:attribute="summary"><input type="text" size="20"
1.20 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.21 + <td><input type="text" size="20" template:attribute-field="summary" name="..." value="..." /></td>
1.22 </tr>
1.23 <tr>
1.24 <th>Description</th>
1.25 - <td template:attribute="description"><textarea cols="80" rows="5"
1.26 - name="{template:this-attribute()}">
1.27 + <td><textarea cols="80" rows="5" template:attribute-area="description" name="...">
1.28 <span template:value="$this-value" template:effect="replace">Insert
1.29 longer description here!</span></textarea></td>
1.30 </tr>
1.31 @@ -49,13 +45,11 @@
1.32 </tr>
1.33 <tr>
1.34 <th>Home page</th>
1.35 - <td template:attribute="home-page"><input type="text" size="80"
1.36 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.37 + <td><input type="text" size="80" template:attribute-field="home-page" name="..." value="..." /></td>
1.38 </tr>
1.39 <tr>
1.40 <th>Licence</th>
1.41 - <td template:attribute="licence"><input type="text" size="20"
1.42 - name="{template:this-attribute()}" value="{$this-value}" /></td>
1.43 + <td><input type="text" size="20" template:attribute-field="licence" name="..." value="..." /></td>
1.44 </tr>
1.45 <tr>
1.46 <th colspan="2" class="heading">Categories</th>
1.47 @@ -63,9 +57,8 @@
1.48 <tr template:element="categories">
1.49 <th>Categories</th>
1.50 <td>
1.51 - <select template:element="category" name="{template:list-attribute('category-enum', 'value')}" multiple="multiple">
1.52 - <option template:element="category-enum" template:expr-attr="selected" template:expr="@value-is-set" template:value="@value"
1.53 - value="{@value}"></option>
1.54 + <select template:multiple-choice-list-field="category,category-enum,value" multiple="multiple">
1.55 + <option template:multiple-choice-list-value="category-enum,value,selected" value="..."></option>
1.56 </select>
1.57 </td>
1.58 </tr>
1.59 @@ -74,31 +67,27 @@
1.60 </tr>
1.61 <tr template:element="platforms,platform">
1.62 <th>Platform name</th>
1.63 - <td><span template:attribute="name"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></span>
1.64 - <input type="submit" value="Remove!"
1.65 - name="remove_platform={template:this-element()}" /></td>
1.66 + <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.67 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_platform" /></td>
1.68 </tr>
1.69 <tr>
1.70 <th></th>
1.71 <td>
1.72 - <input type="submit" value="Add platform!"
1.73 - name="add_platform={template:this-element()}" /></td>
1.74 + <input type="submit" value="Add platform!" name="..." template:selector-field="add_platform,platform" /></td>
1.75 </tr>
1.76 <tr>
1.77 <th colspan="2" class="heading">Supported platforms</th>
1.78 </tr>
1.79 <tr template:element="supported-platforms,supported-platform">
1.80 <th>Platform name</th>
1.81 - <td><span template:attribute="name"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></span>
1.82 - <input type="submit" value="Remove!"
1.83 - name="remove_supported_platform={template:this-element()}"
1.84 + <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.85 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_supported_platform"
1.86 /></td>
1.87 </tr>
1.88 <tr>
1.89 <th></th>
1.90 <td>
1.91 - <input type="submit" value="Add platform!"
1.92 - name="add_supported_platform={template:this-element()}"
1.93 + <input type="submit" value="Add platform!" name="..." template:selector-field="add_supported_platform,supported-platform"
1.94 /></td>
1.95 </tr>
1.96 <tr>
1.97 @@ -106,15 +95,13 @@
1.98 </tr>
1.99 <tr template:element="keywords,keyword">
1.100 <th>Keyword</th>
1.101 - <td><span template:attribute="name"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></span>
1.102 - <input type="submit" value="Remove!"
1.103 - name="remove_keyword={template:this-element()}" /></td>
1.104 + <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.105 + <input type="submit" value="Remove!" template:selector-field="remove_keyword" name="..." /></td>
1.106 </tr>
1.107 <tr>
1.108 <th></th>
1.109 <td>
1.110 - <input type="submit" value="Add keyword!"
1.111 - name="add_keyword={template:this-element()}" /></td>
1.112 + <input type="submit" value="Add keyword!" name="..." template:selector-field="add_keyword" /></td>
1.113 </tr>
1.114 <tr>
1.115 <th colspan="2" class="heading">Authors</th>
1.116 @@ -123,25 +110,23 @@
1.117 <tbody template:element="authors,author">
1.118 <tr>
1.119 <th>Author name</th>
1.120 - <td><span template:attribute="name"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></span>
1.121 - <input type="submit" value="Remove!"
1.122 - name="remove_author={template:this-element()}" /></td>
1.123 + <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.124 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_author" /></td>
1.125 </tr>
1.126 <tr>
1.127 <th>Author contact</th>
1.128 - <td template:attribute="contact"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></td>
1.129 + <td><input template:attribute-field="contact" name="..." value="..." type="text" size="20" /></td>
1.130 </tr>
1.131 <tr>
1.132 <th>Author e-mail</th>
1.133 - <td template:attribute="e-mail"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></td>
1.134 + <td><input template:attribute-field="e-mail" name="..." value="..." type="text" size="20" /></td>
1.135 </tr>
1.136 </tbody>
1.137 <tbody>
1.138 <tr>
1.139 <th></th>
1.140 <td>
1.141 - <input type="submit" value="Add author!"
1.142 - name="add_author={template:this-element()}" /></td>
1.143 + <input type="submit" value="Add author!" name="..." template:selector-field="add_author,author" /></td>
1.144 </tr>
1.145 <tr>
1.146 <th colspan="2" class="heading">Dependencies</th>
1.147 @@ -150,21 +135,19 @@
1.148 <tbody template:element="dependencies,dependency">
1.149 <tr>
1.150 <th>Package name</th>
1.151 - <td><span template:attribute="name"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="20" /></span>
1.152 - <input type="submit" value="Remove!"
1.153 - name="remove_dependency={template:this-element()}" /></td>
1.154 + <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.155 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_dependency" /></td>
1.156 </tr>
1.157 <tr>
1.158 <th>Package version</th>
1.159 - <td template:attribute="version"><input name="{template:this-attribute()}" value="{$this-value}" type="text" size="10" /></td>
1.160 + <td><input template:attribute-field="version" name="..." value="..." type="text" size="10" /></td>
1.161 </tr>
1.162 </tbody>
1.163 <tbody>
1.164 <tr>
1.165 <th></th>
1.166 <td>
1.167 - <input type="submit" value="Add dependency!"
1.168 - name="add_dependency={template:this-element()}" /></td>
1.169 + <input type="submit" value="Add dependency!" name="..." template:selector-field="add_dependency,dependency" /></td>
1.170 </tr>
1.171 <tr>
1.172 <th colspan="2" class="heading">Actions</th>
2.1 --- a/examples/Common/Questionnaire/Resources/question_template.xhtml Mon Oct 03 19:13:51 2005 +0000
2.2 +++ b/examples/Common/Questionnaire/Resources/question_template.xhtml Mon Oct 03 19:14:10 2005 +0000
2.3 @@ -21,45 +21,43 @@
2.4 <tbody template:element="question">
2.5 <tr>
2.6 <th class="question">Question</th>
2.7 - <td class="question" template:attribute="question-text"><textarea cols="40" rows="4"
2.8 - name="{template:this-attribute()}" template:value="$this-value">Question</textarea></td>
2.9 + <td class="question"><textarea cols="40" rows="4" template:attribute-area="question-text,insert"
2.10 + name="...">Question</textarea></td>
2.11 <td class="question-options">
2.12 - <input type="submit" value="Remove question" name="remove-question={template:this-element()}"
2.13 + <input type="submit" value="Remove question" name="..." template:selector-field="remove-question"
2.14 /></td>
2.15 </tr>
2.16 <tr>
2.17 <th class="response">Response</th>
2.18 - <td class="response" template:attribute="question-type"><input type="radio"
2.19 - name="{template:this-attribute()}" value="text" template:expr-attr="checked"
2.20 - template:expr="$this-value = 'text'" /> Text</td>
2.21 + <td class="response"><input type="radio" template:attribute-button="question-type,text,checked"
2.22 + name="..." value="..." /> Text</td>
2.23 <td></td>
2.24 </tr>
2.25 <tr>
2.26 <td class="response"></td>
2.27 - <td class="response" template:attribute="response-text"><input type="text" size="40"
2.28 - name="{template:this-attribute()}" value="{$this-value}" /></td>
2.29 + <td class="response"><input type="text" size="40" template:attribute-field="response-text"
2.30 + name="..." value="..." /></td>
2.31 <td></td>
2.32 </tr>
2.33 <tr>
2.34 <td class="response"></td>
2.35 - <td class="response" template:attribute="question-type"><input type="radio"
2.36 - name="{template:this-attribute()}" value="choice" template:expr-attr="checked"
2.37 - template:expr="$this-value = 'choice'" /> Multiple choice</td>
2.38 + <td class="response"><input type="radio" template:attribute-button="question-type,choice,checked"
2.39 + name="..." value="choice" /> Multiple choice</td>
2.40 <td></td>
2.41 </tr>
2.42 <tr template:element="choice">
2.43 <td class="response"></td>
2.44 - <td class="choice" template:attribute="response-choice"><input type="text" size="40"
2.45 - name="{template:this-attribute()}" value="{$this-value}" /></td>
2.46 + <td class="choice"><input type="text" size="40" template:attribute-field="response-choice"
2.47 + name="..." value="..." /></td>
2.48 <td class="choice-options">
2.49 - <input type="submit" value="Remove choice" name="remove-choice={template:this-element()}"
2.50 + <input type="submit" value="Remove choice" name="..." template:selector-field="remove-choice"
2.51 /></td>
2.52 </tr>
2.53 <tr>
2.54 <td class="response"></td>
2.55 <td class="response"></td>
2.56 <td class="response">
2.57 - <input type="submit" value="Add choice" name="add-choice={template:this-element()}"
2.58 + <input type="submit" value="Add choice" name="..." template:selector-field="add-choice,choice"
2.59 /></td>
2.60 </tr>
2.61 </tbody>