1.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Mon Dec 20 19:42:37 2004 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Mon Dec 20 19:43:05 2004 +0000
1.3 @@ -22,38 +22,38 @@
1.4 </tr>
1.5 <tr>
1.6 <th>Package name</th>
1.7 - <td template:attribute="name">
1.8 - <input name="{template:this-position()}" type="text" value="{string(.)}"/>
1.9 - </td>
1.10 + <td template:attribute="name"><input type="text" size="20"
1.11 + name="{template:this-position()}/{$this-name}" value="{$this-value}" /></td>
1.12 </tr>
1.13 </tbody>
1.14 <tbody template:element="details">
1.15 <tr>
1.16 <th>Package version</th>
1.17 - <td template:attribute="version"><span template:value="string(.)">0.2</span></td>
1.18 + <td template:attribute="version"><input type="text" size="10"
1.19 + name="{template:this-position()}/{$this-name}" value="{$this-value}" /></td>
1.20 </tr>
1.21 <tr>
1.22 <th>Summary</th>
1.23 - <td template:attribute="summary"><span template:value="string(.)" template:effect="replace">An XML-based
1.24 - Web forms processing package.</span></td>
1.25 + <td template:attribute="summary"><span template:value="$this-value" template:effect="replace">An
1.26 + XML-based Web forms processing package.</span></td>
1.27 </tr>
1.28 <tr>
1.29 <th>Description</th>
1.30 - <td template:attribute="description" template:value="string(.)">Insert
1.31 + <td template:attribute="description" template:value="$this-value">Insert
1.32 longer description here!</td>
1.33 </tr>
1.34 <tr template:element="error">
1.35 <th></th>
1.36 - <td template:attribute="size" class="error">Only {size} characters can be used in a
1.37 - description.</td>
1.38 + <td template:attribute="size" class="error">Only {size} characters
1.39 + can be used in a description.</td>
1.40 </tr>
1.41 <tr>
1.42 <th>Home page</th>
1.43 - <td template:attribute="home-page" template:value="string(.)">http://www.boddie.org.uk/python/XMLForms2/index.html</td>
1.44 + <td template:attribute="home-page" template:value="$this-value">http://www.boddie.org.uk/python/XMLForms2/index.html</td>
1.45 </tr>
1.46 <tr>
1.47 <th>Licence</th>
1.48 - <td template:attribute="licence" template:value="string(.)">LGPL</td>
1.49 + <td template:attribute="licence" template:value="$this-value">LGPL</td>
1.50 </tr>
1.51 </tbody>
1.52 <tbody template:element="discriminators">
1.53 @@ -64,14 +64,19 @@
1.54 <th>Discriminator</th>
1.55 <td template:element="category">
1.56 <select name="{template:this-position()}">
1.57 - <option template:element="category-enum" value="{@value}"
1.58 - template:expr-attr="selected" template:expr="@value = ../@value" template:value="@value"/>
1.59 + <option template:element="category-enum" template:expr-attr="selected" template:expr="@value = ../@value" template:value="@value"
1.60 + value="{@value}"></option>
1.61 </select>
1.62 - <input type="submit" value="Remove!" name="_action_remove_discriminator={template:this-position()}" /></td>
1.63 +
1.64 + <input type="submit" value="Remove!"
1.65 + name="_action_remove_discriminator={template:this-position()}"
1.66 + /></td>
1.67 </tr>
1.68 <tr>
1.69 <th></th>
1.70 - <td><input type="submit" value="Add discriminator!" name="_action_add_discriminator={template:this-position()}" /></td>
1.71 + <td>
1.72 + <input type="submit" value="Add discriminator!"
1.73 + name="_action_add_discriminator={template:this-position()}" /></td>
1.74 </tr>
1.75 </tbody>
1.76 <tbody template:element="platforms">
1.77 @@ -80,13 +85,16 @@
1.78 </tr>
1.79 <tr template:element="platform">
1.80 <th>Platform name</th>
1.81 - <td><span template:attribute="name" template:value=".">Linux (with more listed below)</span>
1.82 - <input type="submit" value="Remove!" name="_action_remove_platform={template:this-position()}" /></td>
1.83 + <td><span template:attribute="name" template:value=".">Linux (with
1.84 + more listed below)</span>
1.85 + <input type="submit" value="Remove!"
1.86 + name="_action_remove_platform={template:this-position()}" /></td>
1.87 </tr>
1.88 <tr>
1.89 <th></th>
1.90 <td>
1.91 - <input type="submit" value="Add platform!" name="_action_add_platform={template:this-position()}" /></td>
1.92 + <input type="submit" value="Add platform!"
1.93 + name="_action_add_platform={template:this-position()}" /></td>
1.94 </tr>
1.95 </tbody>
1.96 <tbody template:element="supported-platforms">
1.97 @@ -95,13 +103,18 @@
1.98 </tr>
1.99 <tr template:element="supported-platform">
1.100 <th>Platform name</th>
1.101 - <td><span template:attribute="name" template:value="string(.)">Linux (with more listed below)</span>
1.102 - <input type="submit" value="Remove!" name="_action_remove_supported_platform={template:this-position()}" /></td>
1.103 + <td><span template:attribute="name" template:value="$this-value">Linux
1.104 + (with more listed below)</span>
1.105 + <input type="submit" value="Remove!"
1.106 + name="_action_remove_supported_platform={template:this-position()}"
1.107 + /></td>
1.108 </tr>
1.109 <tr>
1.110 <th></th>
1.111 <td>
1.112 - <input type="submit" value="Add platform!" name="_action_add_supported_platform={template:this-position()}" /></td>
1.113 + <input type="submit" value="Add platform!"
1.114 + name="_action_add_supported_platform={template:this-position()}"
1.115 + /></td>
1.116 </tr>
1.117 </tbody>
1.118 <tbody template:element="keywords">
1.119 @@ -110,12 +123,16 @@
1.120 </tr>
1.121 <tr template:element="keyword">
1.122 <th>Keyword</th>
1.123 - <td><span template:attribute="name" template:value="string(.)">Web programming</span>
1.124 - <input type="submit" value="Remove!" name="_action_remove_keyword={template:this-position()}" /></td>
1.125 + <td><span template:attribute="name" template:value="$this-value">Web
1.126 + programming</span>
1.127 + <input type="submit" value="Remove!"
1.128 + name="_action_remove_keyword={template:this-position()}" /></td>
1.129 </tr>
1.130 <tr>
1.131 <th></th>
1.132 - <td><input type="submit" value="Add keyword!" name="_action_add_keyword={template:this-position()}" /></td>
1.133 + <td>
1.134 + <input type="submit" value="Add keyword!"
1.135 + name="_action_add_keyword={template:this-position()}" /></td>
1.136 </tr>
1.137 </tbody>
1.138 <tbody>
1.139 @@ -126,22 +143,27 @@
1.140 <tbody template:element="authors,author">
1.141 <tr>
1.142 <th>Author name</th>
1.143 - <td><span template:attribute="name" template:value="string(.)">Paul Boddie</span>
1.144 - <input type="submit" value="Remove!" name="_action_remove_author={template:this-position()}" /></td>
1.145 + <td><span template:attribute="name" template:value="$this-value">Paul
1.146 + Boddie</span>
1.147 + <input type="submit" value="Remove!"
1.148 + name="_action_remove_author={template:this-position()}" /></td>
1.149 </tr>
1.150 <tr>
1.151 <th>Author contact</th>
1.152 - <td template:attribute="contact" template:value="string(.)">Oslo, Norway</td>
1.153 + <td template:attribute="contact" template:value="$this-value">Oslo,
1.154 + Norway</td>
1.155 </tr>
1.156 <tr>
1.157 <th>Author e-mail</th>
1.158 - <td template:attribute="e-mail" template:value="string(.)">paul@boddie.org.uk</td>
1.159 + <td template:attribute="e-mail" template:value="$this-value">paul@boddie.org.uk</td>
1.160 </tr>
1.161 </tbody>
1.162 <tbody>
1.163 <tr>
1.164 <th></th>
1.165 - <td><input type="submit" value="Add author!" name="_action_add_author={template:this-position()}" /></td>
1.166 + <td>
1.167 + <input type="submit" value="Add author!"
1.168 + name="_action_add_author={template:this-position()}" /></td>
1.169 </tr>
1.170 </tbody>
1.171 <tbody>
1.172 @@ -152,19 +174,21 @@
1.173 <tbody template:element="dependencies,dependency">
1.174 <tr>
1.175 <th>Package name</th>
1.176 - <td><span template:attribute="name" template:value="string(.)">XMLTools2</span>
1.177 - <input type="submit" value="Remove!" name="_action_remove_dependency={template:this-position()}" /></td>
1.178 + <td><span template:attribute="name" template:value="$this-value">XMLTools2</span>
1.179 + <input type="submit" value="Remove!"
1.180 + name="_action_remove_dependency={template:this-position()}" /></td>
1.181 </tr>
1.182 <tr>
1.183 <th>Package version</th>
1.184 - <td template:attribute="version" template:value="string(.)">0.2</td>
1.185 + <td template:attribute="version" template:value="$this-value">0.2</td>
1.186 </tr>
1.187 </tbody>
1.188 <tbody>
1.189 <tr>
1.190 <th></th>
1.191 <td>
1.192 - <input type="submit" value="Add dependency!" name="_action_add_dependency={template:this-position()}" /></td>
1.193 + <input type="submit" value="Add dependency!"
1.194 + name="_action_add_dependency={template:this-position()}" /></td>
1.195 </tr>
1.196 </tbody>
1.197 <tbody>