File: faq001.phpt

package info (click to toggle)
php-doc 20241205~git.dfcbb86%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 70,956 kB
  • sloc: xml: 968,269; php: 23,883; javascript: 671; sh: 177; makefile: 37
file content (117 lines) | stat: -rw-r--r-- 2,112 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
--TEST--
Testing a simple FAQ
--FILE--
<?php
namespace phpdotnet\phd;

require_once __DIR__ . "/../../setup.php";

$xml_file = __DIR__ . "/data/faq001.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML($config, $outputHandler);
$render = new TestRender(new Reader($outputHandler), $config, $format);

$render->run();
?>
--EXPECT--
Filename: faq.001.html
Content:
<div id="faq.001" class="chapter">
  <h1 class="title">FAQ Test 001</h1>

  

  <p class="para">
    Testing FAQs
  </p>

  <div class="qandaset"><ol class="qandaset_questions"><li><a href="#faq.001.01">
     
      Simple test question 01
     
    </a></li><li><a href="#faq.001.02">
     
      Simple test question 02
     
    </a></li><li><a href="#faq.001.03">
     
      Simple test question 03
     
    </a></li><li><a href="#faq.001.04">
     
      Simple test question 04
     
    </a></li><li><a href="#faq.001.05">
     
      Simple test question 05
     
    </a></li></ol></div>
   <dl class="qandaentry" id="faq.001.01">
    <dt><strong>
     
      Simple test question 01
     
    </strong></dt>
    <dd class="answer">
     <p class="para">
      Simple test answer 01
     </p>
    </dd>
  </dl>

  <dl class="qandaentry" id="faq.001.02">
    <dt><strong>
     
      Simple test question 02
     
    </strong></dt>
    <dd class="answer">
     <p class="para">
      Simple test answer 02
     </p>
    </dd>
  </dl>

  <dl class="qandaentry" id="faq.001.03">
    <dt><strong>
     
      Simple test question 03
     
    </strong></dt>
    <dd class="answer">
     <p class="para">
      Simple test answer 03
     </p>
    </dd>
  </dl>

  <dl class="qandaentry" id="faq.001.04">
    <dt><strong>
     
      Simple test question 04
     
    </strong></dt>
    <dd class="answer">
     <p class="para">
      Simple test answer 04
     </p>
    </dd>
  </dl>

  <dl class="qandaentry" id="faq.001.05">
    <dt><strong>
     
      Simple test question 05
     
    </strong></dt>
    <dd class="answer">
     <p class="para">
      Simple test answer 05
     </p>
    </dd>
  </dl>

  
</div>