1.1 --- a/examples/Common/Questionnaire/Resources/question_template.xhtml Tue Jul 19 23:40:05 2005 +0000
1.2 +++ b/examples/Common/Questionnaire/Resources/question_template.xhtml Wed Jul 20 12:53:04 2005 +0000
1.3 @@ -22,44 +22,44 @@
1.4 <tr>
1.5 <th class="question">Question</th>
1.6 <td class="question" template:attribute="question-text"><textarea cols="40" rows="4"
1.7 - name="{template:field-name()}" template:value="$this-value">Question</textarea></td>
1.8 + name="{template:this-attribute()}" template:value="$this-value">Question</textarea></td>
1.9 <td class="question-options">
1.10 - <input type="submit" value="Remove question" name="remove-question={template:this-position()}"
1.11 + <input type="submit" value="Remove question" name="remove-question={template:this-element()}"
1.12 /></td>
1.13 </tr>
1.14 <tr>
1.15 <th class="response">Response</th>
1.16 <td class="response" template:attribute="question-type"><input type="radio"
1.17 - name="{template:field-name()}" value="text" template:expr-attr="checked"
1.18 + name="{template:this-attribute()}" value="text" template:expr-attr="checked"
1.19 template:expr="$this-value = 'text'" /> Text</td>
1.20 <td></td>
1.21 </tr>
1.22 <tr>
1.23 <td class="response"></td>
1.24 <td class="response" template:attribute="response-text"><input type="text" size="40"
1.25 - name="{template:field-name()}" value="{$this-value}" /></td>
1.26 + name="{template:this-attribute()}" value="{$this-value}" /></td>
1.27 <td></td>
1.28 </tr>
1.29 <tr>
1.30 <td class="response"></td>
1.31 <td class="response" template:attribute="question-type"><input type="radio"
1.32 - name="{template:field-name()}" value="choice" template:expr-attr="checked"
1.33 + name="{template:this-attribute()}" value="choice" template:expr-attr="checked"
1.34 template:expr="$this-value = 'choice'" /> Multiple choice</td>
1.35 <td></td>
1.36 </tr>
1.37 <tr template:element="choice">
1.38 <td class="response"></td>
1.39 <td class="choice" template:attribute="response-choice"><input type="text" size="40"
1.40 - name="{template:field-name()}" value="{$this-value}" /></td>
1.41 + name="{template:this-attribute()}" value="{$this-value}" /></td>
1.42 <td class="choice-options">
1.43 - <input type="submit" value="Remove choice" name="remove-choice={template:this-position()}"
1.44 + <input type="submit" value="Remove choice" name="remove-choice={template:this-element()}"
1.45 /></td>
1.46 </tr>
1.47 <tr>
1.48 <td class="response"></td>
1.49 <td class="response"></td>
1.50 <td class="response">
1.51 - <input type="submit" value="Add choice" name="add-choice={template:this-position()}"
1.52 + <input type="submit" value="Add choice" name="add-choice={template:this-element()}"
1.53 /></td>
1.54 </tr>
1.55 </tbody>