1.1 --- a/docs/template-design.html Tue Nov 08 19:02:02 2005 +0000
1.2 +++ b/docs/template-design.html Tue Nov 08 19:04:00 2005 +0000
1.3 @@ -46,10 +46,13 @@
1.4 and to request that some operation be performed on those selected
1.5 elements. Two common selector types are those concerning the addition
1.6 and removal of elements.</p><h4>Selectors as Buttons</h4><p>In the collection elements example above, we saw the usage of a selector which could be used to add elements to a document:</p><pre><input template:selector-field="add-hard-disk,hard-disk" type="submit" name="..." value="Add hard disk"/></pre><p>This would produce the following HTML form control:</p><p><input name="..." value="Add hard disk" type="submit" /> </p><p>As described in the <a href="XSLForms-resource.html">"Using the XSLFormsResource API"</a> document, the above selector (with the name <code>add-hard-disk</code>)
1.7 -could be obtained and the associated collection of elements used to
1.8 -insert new elements within the specified elements. Similarly, a
1.9 +could be obtained in the application itself, and the collection of
1.10 +elements associated with the selector used as a collection of places to
1.11 +insert new elements into the form data document. Similarly, a
1.12 selector which could be used to remove elements from a document could
1.13 -be specified as follows:</p><pre><input template:selector-field="remove-hard-disk" type="submit" name="..." value="Remove hard disk"/></pre><p>This would produce the following HTML form control:</p><p><input name="..." value="Remove hard disk" type="submit" /></p><p>Again, such a selector could be obtained and its associated elements removed from the document.</p><h4>Selectors as Checkboxes</h4><p>Whilst
1.14 +be specified as follows:</p><pre><input template:selector-field="remove-hard-disk" type="submit" name="..." value="Remove hard disk"/></pre><p>This would produce the following HTML form control:</p><p><input name="..." value="Remove hard disk" type="submit" /></p><p>Again,
1.15 +such a selector could be obtained in the application, and the
1.16 +associated elements could then be removed from the document.</p><h4>Selectors as Checkboxes</h4><p>Whilst
1.17 selectors can be modelled conveniently with buttons, since they may
1.18 cause an immediate update to the form data with feedback from the
1.19 operation occurring immediately, other form controls can be used to
1.20 @@ -58,7 +61,7 @@
1.21 document as being selected, with the application left to determine what
1.22 kind of operation should be applied to the selection.</p><h3>Attribute Values</h3><p>A
1.23 simple attribute value is defined to be a value, freely editable set in
1.24 -an attribute on some element in a document. For example, in an XML document:</p><pre><element attribute="value"/></pre><p>The
1.25 +an attribute on some element in a document. For example, in the form data document:</p><pre><element attribute="value"/></pre><p>The
1.26 following sections describe ways in which the value can be viewed,
1.27 edited or changed through the presentation of the attribute in the
1.28 template.</p><h4>Editable Fields</h4><p>If we are to permit an attribute value to be edited, we might choose the following template representation:</p><pre><input template:attribute-field="attribute" name="..." value="..." type="text"/></pre><p>This would produce the following HTML form control:</p><p><input name="..." value="..." /></p><p>Note