1.1 --- a/docs/selectors.html Tue Jul 19 23:40:05 2005 +0000
1.2 +++ b/docs/selectors.html Wed Jul 20 12:53:04 2005 +0000
1.3 @@ -29,11 +29,11 @@
1.4 <p>Taking the example HTML code from before, we add some of these
1.5 selector annotations to the template to produce something
1.6 like this:</p>
1.7 -<pre><html xmlns="http://www.w3.org/1999/xhtml"<br /> xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"><br /><head><br /> <title>Example</title><br /></head><br /><body template:element="structure"><br /><form action="" method="POST"><br /><br /><!-- Template text between the start and the interesting part. --><br /><br /><div template:element="item"><br /> <p><br /> Some item: <input template:attribute="value" name="{template:field-name()}" type="text" value="{$this-value}" /><br /> <input name="<span
1.8 - style="font-weight: bold;">remove={template:this-position()}</span>" type="submit" value="Remove" /><br /> </p><br /> <p><br /> Itself containing more items:<br /> </p><br /> <p template:element="subitem"><br /> Sub-item: <input template:attribute="subvalue" name="{template:field-name()}" type="text" value="{$this-value}" /><br /> <input name="<span
1.9 - style="font-weight: bold;">remove2={template:this-position()}</span>" type="submit" value="Remove" /><br /> </p><br /> <p><br /> <input name="<span
1.10 - style="font-weight: bold;">add2={template:this-position()}</span>" type="submit" value="Add subitem" /><br /> </p><br /></div><br /><p><br /> <input name="<span
1.11 - style="font-weight: bold;">add={template:this-position()}</span>" type="submit" value="Add item" /><br /></p><span
1.12 +<pre><html xmlns="http://www.w3.org/1999/xhtml"<br /> xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"><br /><head><br /> <title>Example</title><br /></head><br /><body template:element="structure"><br /><form action="" method="POST"><br /><br /><!-- Template text between the start and the interesting part. --><br /><br /><div template:element="item"><br /> <p><br /> Some item: <input template:attribute="value" name="{template:this-attribute()}" type="text" value="{$this-value}" /><br /> <input name="<span
1.13 + style="font-weight: bold;">remove={template:this-element()}</span>" type="submit" value="Remove" /><br /> </p><br /> <p><br /> Itself containing more items:<br /> </p><br /> <p template:element="subitem"><br /> Sub-item: <input template:attribute="subvalue" name="{template:this-attribute()}" type="text" value="{$this-value}" /><br /> <input name="<span
1.14 + style="font-weight: bold;">remove2={template:this-element()}</span>" type="submit" value="Remove" /><br /> </p><br /> <p><br /> <input name="<span
1.15 + style="font-weight: bold;">add2={template:this-element()}</span>" type="submit" value="Add subitem" /><br /> </p><br /></div><br /><p><br /> <input name="<span
1.16 + style="font-weight: bold;">add={template:this-element()}</span>" type="submit" value="Add item" /><br /></p><span
1.17 style="font-weight: bold;" /><br /><br /><!-- Template text between the interesting part and the end. --><br /><br /></form><br /></body><br /></html></pre>
1.18 <h3>The Remove Buttons</h3>
1.19 <p>Some of the attributes in the previous HTML code have been