1.1 --- a/examples/Common/VerySimple/Resources/structure_template.xhtml Tue Jul 19 23:40:05 2005 +0000
1.2 +++ b/examples/Common/VerySimple/Resources/structure_template.xhtml Wed Jul 20 12:53:04 2005 +0000
1.3 @@ -13,12 +13,12 @@
1.4
1.5 <div template:element="item">
1.6 <p>
1.7 - Some item: <input template:attribute="value" name="{template:field-name()}" type="text" value="{$this-value}" />
1.8 - <input name="remove={template:this-position()}" type="submit" value="Remove" />
1.9 + Some item: <input template:attribute="value" name="{template:this-attribute()}" type="text" value="{$this-value}" />
1.10 + <input name="remove={template:this-element()}" type="submit" value="Remove" />
1.11 </p>
1.12 <p>
1.13 Item type:
1.14 - <select template:element="type" name="{template:new-field('value')}">
1.15 + <select template:element="type" name="{template:new-attribute('value')}">
1.16 <option template:element="type-enum" template:expr="@value = ../@value" template:expr-attr="selected"
1.17 template:value="@value" value="{@value}" />
1.18 </select>
1.19 @@ -27,15 +27,15 @@
1.20 Itself containing more items:
1.21 </p>
1.22 <p template:element="subitem">
1.23 - Sub-item: <input template:attribute="subvalue" name="{template:field-name()}" type="text" value="{$this-value}" />
1.24 - <input name="remove2={template:this-position()}" type="submit" value="Remove" />
1.25 + Sub-item: <input template:attribute="subvalue" name="{template:this-attribute()}" type="text" value="{$this-value}" />
1.26 + <input name="remove2={template:this-element()}" type="submit" value="Remove" />
1.27 </p>
1.28 <p>
1.29 - <input name="add2={template:this-position()}" type="submit" value="Add subitem" />
1.30 + <input name="add2={template:this-element()}" type="submit" value="Add subitem" />
1.31 </p>
1.32 </div>
1.33 <p>
1.34 - <input name="add={template:this-position()}" type="submit" value="Add item" />
1.35 + <input name="add={template:this-element()}" type="submit" value="Add item" />
1.36 </p>
1.37
1.38 <!-- Template text between the interesting part and the end. -->