XSLTools

Annotated examples/Common/VerySimpleWithOpenID/Resources/login_template.xhtml

692:fd003deb4d59
2009-11-29 Paul Boddie Added fixes from the WebStack example involving credentials, non-ASCII characters, and some XRD-based resources.
paulb@652 1
<?xml version="1.0" encoding="iso-8859-1"?>
paulb@652 2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
paulb@652 3
       "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
paulb@652 4
<html xmlns="http://www.w3.org/1999/xhtml"
paulb@652 5
 xmlns:template="http://www.boddie.org.uk/ns/xmltools/template">
paulb@652 6
<head>
paulb@652 7
  <title>Login</title>
paulb@652 8
</head>
paulb@652 9
paulb@652 10
<body template:element="login">
paulb@652 11
<h1>Login</h1>
paulb@652 12
paulb@652 13
<form method="post">
paulb@652 14
  <table cellspacing="0" cellpadding="5" id="login-info">
paulb@652 15
    <thead>
paulb@652 16
      <tr>
paulb@652 17
        <th class="heading" colspan="2">Login</th>
paulb@652 18
      </tr>
paulb@652 19
    </thead>
paulb@652 20
    <tbody>
paulb@652 21
      <tr template:element="error" template:init="no">
paulb@652 22
        <th>Error</th>
paulb@652 23
        <td><span template:attribute-area="message,replace">error message</span></td>
paulb@652 24
      </tr>
paulb@652 25
      <tr>
paulb@652 26
        <th>Username</th>
paulb@652 27
        <td><input type="text" template:attribute-field="username" name="..." value="..." size="20"/></td>
paulb@652 28
      </tr>
paulb@652 29
      <tr>
paulb@652 30
        <th>Password</th>
paulb@652 31
        <td><input type="password" template:attribute-field="password" name="..." value="..." size="20"/></td>
paulb@652 32
      </tr>
paulb@652 33
      <tr>
paulb@652 34
        <td colspan="2">
paulb@652 35
          <input type="submit" value="Log in!" name="login" />
paulb@652 36
        </td>
paulb@652 37
      </tr>
paulb@652 38
    </tbody>
paulb@652 39
  </table>
paulb@652 40
  <input type="hidden" template:attribute-field="return_to" name="..." value="..."/>
paulb@652 41
  <input type="hidden" template:attribute-field="claimed_id" name="..." value="..."/>
paulb@652 42
  <input type="hidden" template:attribute-field="identity" name="..." value="..."/>
paulb@652 43
</form>
paulb@652 44
paulb@652 45
</body>
paulb@652 46
</html>