1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Mon Dec 20 00:30:39 2004 +0000
1.3 @@ -0,0 +1,184 @@
1.4 +<?xml version="1.0" encoding="iso-8859-1"?>
1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
1.6 + "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
1.7 +<html xmlns="http://www.w3.org/1999/xhtml"
1.8 + xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
1.9 +<head>
1.10 + <title>PEP 241 Package Registry</title>
1.11 + <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.12 + <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles.css"
1.13 + rel="stylesheet" type="text/css" />
1.14 +</head>
1.15 +
1.16 +<body>
1.17 +<h1>PEP 241 Package Registry</h1>
1.18 +
1.19 +<form method="get">
1.20 +
1.21 + <table cellspacing="0" cellpadding="5" template:element="package">
1.22 + <tbody>
1.23 + <tr>
1.24 + <th class="heading" colspan="2">Summary</th>
1.25 + </tr>
1.26 + <tr>
1.27 + <th>Package name</th>
1.28 + <td template:attribute="name">
1.29 + <input name="{template:this-position()}" type="text" value="{string(.)}"/>
1.30 + </td>
1.31 + </tr>
1.32 + </tbody>
1.33 + <tbody template:element="details">
1.34 + <tr>
1.35 + <th>Package version</th>
1.36 + <td template:attribute="version"><span template:value="string(.)">0.2</span></td>
1.37 + </tr>
1.38 + <tr>
1.39 + <th>Summary</th>
1.40 + <td template:attribute="summary"><span template:value="string(.)" template:effect="replace">An XML-based
1.41 + Web forms processing package.</span></td>
1.42 + </tr>
1.43 + <tr>
1.44 + <th>Description</th>
1.45 + <td template:attribute="description" template:value="string(.)">Insert
1.46 + longer description here!</td>
1.47 + </tr>
1.48 + <tr template:element="error">
1.49 + <th></th>
1.50 + <td template:attribute="size" class="error">Only {size} characters can be used in a
1.51 + description.</td>
1.52 + </tr>
1.53 + <tr>
1.54 + <th>Home page</th>
1.55 + <td template:attribute="home-page" template:value="string(.)">http://www.boddie.org.uk/python/XMLForms2/index.html</td>
1.56 + </tr>
1.57 + <tr>
1.58 + <th>Licence</th>
1.59 + <td template:attribute="licence" template:value="string(.)">LGPL</td>
1.60 + </tr>
1.61 + </tbody>
1.62 + <tbody template:element="discriminators">
1.63 + <tr>
1.64 + <th colspan="2" class="heading">Discriminators</th>
1.65 + </tr>
1.66 + <tr template:element="discriminator">
1.67 + <th>Discriminator</th>
1.68 + <td template:element="category">
1.69 + <select name="{template:this-position()}">
1.70 + <option template:element="category-enum" value="{@value}"
1.71 + template:expr-attr="selected" template:expr="@value = ../@value" template:value="@value"/>
1.72 + </select>
1.73 + <input type="submit" value="Remove!" name="_action_remove_discriminator={template:this-position()}" /></td>
1.74 + </tr>
1.75 + <tr>
1.76 + <th></th>
1.77 + <td><input type="submit" value="Add discriminator!" name="_action_add_discriminator={template:this-position()}" /></td>
1.78 + </tr>
1.79 + </tbody>
1.80 + <tbody template:element="platforms">
1.81 + <tr>
1.82 + <th colspan="2" class="heading">Platforms</th>
1.83 + </tr>
1.84 + <tr template:element="platform">
1.85 + <th>Platform name</th>
1.86 + <td><span template:attribute="name" template:value=".">Linux (with more listed below)</span>
1.87 + <input type="submit" value="Remove!" name="_action_remove_platform={template:this-position()}" /></td>
1.88 + </tr>
1.89 + <tr>
1.90 + <th></th>
1.91 + <td>
1.92 + <input type="submit" value="Add platform!" name="_action_add_platform={template:this-position()}" /></td>
1.93 + </tr>
1.94 + </tbody>
1.95 + <tbody template:element="supported-platforms">
1.96 + <tr>
1.97 + <th colspan="2" class="heading">Supported platforms</th>
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 + </tr>
1.104 + <tr>
1.105 + <th></th>
1.106 + <td>
1.107 + <input type="submit" value="Add platform!" name="_action_add_supported_platform={template:this-position()}" /></td>
1.108 + </tr>
1.109 + </tbody>
1.110 + <tbody template:element="keywords">
1.111 + <tr>
1.112 + <th colspan="2" class="heading">Keywords</th>
1.113 + </tr>
1.114 + <tr template:element="keyword">
1.115 + <th>Keyword</th>
1.116 + <td><span template:attribute="name" template:value="string(.)">Web programming</span>
1.117 + <input type="submit" value="Remove!" name="_action_remove_keyword={template:this-position()}" /></td>
1.118 + </tr>
1.119 + <tr>
1.120 + <th></th>
1.121 + <td><input type="submit" value="Add keyword!" name="_action_add_keyword={template:this-position()}" /></td>
1.122 + </tr>
1.123 + </tbody>
1.124 + <tbody>
1.125 + <tr>
1.126 + <th colspan="2" class="heading">Authors</th>
1.127 + </tr>
1.128 + </tbody>
1.129 + <tbody template:element="authors,author">
1.130 + <tr>
1.131 + <th>Author name</th>
1.132 + <td><span template:attribute="name" template:value="string(.)">Paul Boddie</span>
1.133 + <input type="submit" value="Remove!" name="_action_remove_author={template:this-position()}" /></td>
1.134 + </tr>
1.135 + <tr>
1.136 + <th>Author contact</th>
1.137 + <td template:attribute="contact" template:value="string(.)">Oslo, Norway</td>
1.138 + </tr>
1.139 + <tr>
1.140 + <th>Author e-mail</th>
1.141 + <td template:attribute="e-mail" template:value="string(.)">paul@boddie.org.uk</td>
1.142 + </tr>
1.143 + </tbody>
1.144 + <tbody>
1.145 + <tr>
1.146 + <th></th>
1.147 + <td><input type="submit" value="Add author!" name="_action_add_author={template:this-position()}" /></td>
1.148 + </tr>
1.149 + </tbody>
1.150 + <tbody>
1.151 + <tr>
1.152 + <th colspan="2" class="heading">Dependencies</th>
1.153 + </tr>
1.154 + </tbody>
1.155 + <tbody template:element="dependencies,dependency">
1.156 + <tr>
1.157 + <th>Package name</th>
1.158 + <td><span template:attribute="name" template:value="string(.)">XMLTools2</span>
1.159 + <input type="submit" value="Remove!" name="_action_remove_dependency={template:this-position()}" /></td>
1.160 + </tr>
1.161 + <tr>
1.162 + <th>Package version</th>
1.163 + <td template:attribute="version" template:value="string(.)">0.2</td>
1.164 + </tr>
1.165 + </tbody>
1.166 + <tbody>
1.167 + <tr>
1.168 + <th></th>
1.169 + <td>
1.170 + <input type="submit" value="Add dependency!" name="_action_add_dependency={template:this-position()}" /></td>
1.171 + </tr>
1.172 + </tbody>
1.173 + <tbody>
1.174 + <tr>
1.175 + <th colspan="2" class="heading">Actions</th>
1.176 + </tr>
1.177 + <tr>
1.178 + <th></th>
1.179 + <td>
1.180 + <input type="submit" value="Update!" name="_action_update" />
1.181 + <input type="submit" value="Finish!" name="_action_finish" /></td>
1.182 + </tr>
1.183 + </tbody>
1.184 + </table>
1.185 +</form>
1.186 +</body>
1.187 +</html>