XSLTools

Annotated examples/Common/Questionnaire/Resources/question_template_original.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@31 1
<?xml version="1.0" encoding="iso-8859-1"?>
paulb@31 2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
paulb@31 3
       "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
paulb@31 4
<html xmlns="http://www.w3.org/1999/xhtml">
paulb@31 5
<head>
paulb@31 6
  <title>Questionnaire Editor</title>
paulb@31 7
  <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" />
paulb@31 8
  <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles.css"
paulb@31 9
  rel="stylesheet" type="text/css" />
paulb@31 10
</head>
paulb@31 11
paulb@31 12
<body>
paulb@31 13
<h1>Questionnaire Editor</h1>
paulb@31 14
paulb@31 15
<p>Enter questions and possible responses below.</p>
paulb@31 16
paulb@31 17
<form method="get" action="">
paulb@31 18
paulb@31 19
  <table class="questionnaire">
paulb@31 20
    <tbody>
paulb@31 21
      <tr>
paulb@31 22
        <th class="question">Question</th>
paulb@31 23
        <td class="question"><textarea cols="40" rows="4"
paulb@31 24
          name="question-text">Question </textarea></td>
paulb@31 25
        <td class="question-options">
paulb@31 26
          <input type="submit" value="Remove question" name="remove-question"
paulb@31 27
          /></td>
paulb@31 28
      </tr>
paulb@31 29
      <tr>
paulb@31 30
        <th class="response">Response</th>
paulb@31 31
        <td class="response"><input type="radio" name="question-type"
paulb@31 32
          value="text" /> Text</td>
paulb@31 33
        <td></td>
paulb@31 34
      </tr>
paulb@31 35
      <tr>
paulb@31 36
        <td class="response"></td>
paulb@31 37
        <td class="response"><input type="text" size="40"
paulb@31 38
          name="response-text" /></td>
paulb@31 39
        <td></td>
paulb@31 40
      </tr>
paulb@31 41
      <tr>
paulb@31 42
        <td class="response"></td>
paulb@31 43
        <td class="response"><input type="radio" name="question-type"
paulb@31 44
          value="choice" /> Multiple choice</td>
paulb@31 45
        <td></td>
paulb@31 46
      </tr>
paulb@31 47
      <tr>
paulb@31 48
        <td class="response"></td>
paulb@31 49
        <td class="choice"><input type="text" size="40"
paulb@31 50
          name="response-choice" /></td>
paulb@31 51
        <td class="choice-options">
paulb@31 52
          <input type="submit" value="Remove choice" name="remove-choice"
paulb@31 53
        /></td>
paulb@31 54
      </tr>
paulb@31 55
      <tr>
paulb@31 56
        <td class="response"></td>
paulb@31 57
        <td class="response"></td>
paulb@31 58
        <td class="response">
paulb@31 59
          <input type="submit" value="Add choice" name="add-choice"
paulb@31 60
        /></td>
paulb@31 61
      </tr>
paulb@31 62
    </tbody>
paulb@31 63
  </table>
paulb@31 64
paulb@31 65
  <p>
paulb@31 66
  <input type="submit" value="Add question" name="add-question" /> to make
paulb@31 67
  the questionnaire longer.</p>
paulb@31 68
paulb@31 69
  <p>
paulb@31 70
  <input type="submit" value="Finish" name="finish" /> when all the questions
paulb@31 71
  and responses are ready.</p>
paulb@31 72
</form>
paulb@31 73
</body>
paulb@31 74
</html>