File: report.xhtml

package info (click to toggle)
xhtmlrenderer 0.0~R8%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 11,288 kB
  • ctags: 7,218
  • sloc: java: 46,036; xml: 1,518; makefile: 27; sh: 11
file content (210 lines) | stat: -rw-r--r-- 5,525 bytes parent folder | download | duplicates (3)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>Flying Saucer: Tables Support</title>
    <link rel="stylesheet" type="text/css" href="general.css" title="Style" media="screen"/>
    <link rel="stylesheet" type="text/css" href="print.css" title="Style" media="print"/>
    <style type="text/css">
        body {
            padding: 30px;
        }

        h1 {
            font-family: "Century Gothic";
            text-align: right;
            font-weight: normal;
        }

        h2 {
            font-size: 100%;
            font-style: italic;
            font-weight: normal;
        }

        table {
            border: 1px solid gray;
            width: 100%;
            border-collapse: separate;
        }

        caption {
            border: 1px solid gray;
        }

        td, th {
            border: 0px solid black;
            text-align: right;
        }

        td.desc, th {
            text-align: left;
        }

        tr.odd td {
            background-color: #ccccff;
        }

        tr.even td {
            background-color: transparent;
        }

        tr.totals td.total {
            background-color: #ccccff;
        }

        table#overview td {
            border: 1px solid gray;
            padding: 5px;
        }
    </style>
</head>
<body>
<p class="link left-link"><a href="demoNav:back">Previous Page</a></p>

<p class="link right-link"><a href="demoNav:forward">Next Page</a></p>

<p id="fslogo">Flying Saucer XML/CSS2 Renderer</p>

<div style="width: 100%">
    <table id="overview" cellspacing="0" cellpadding="0" style="border: 0px; width: 100%;" border="1">
        <tr>
            <td style="text-align: left; padding-bottom: 10px;"><span id="pagebyline">Tables Support</span></td>
            <td>
				<table style="border-collapse: collapse;">
					<tr>
						<td style="font-size: x-small;">thead!</td>
						<td style="font-size: x-small;">tfoot!</td>
					</tr>
					<tr>
						<td>
						<table style="border-collapse: collapse;">
							<tr>
								<td style="font-size: x-small;">tbody!</td>
								<td>
								<table style="border-collapse: collapse;">
								<tr>
									<td style="font-size: x-small;">th, tr, td!</td>
									<td style="font-size: x-small;">alignment</td>
									<td style="font-size: x-small;">collapse!</td>
								</tr>
									<tr>
										<td colspan="3">colspan!</td>
									</tr>
								</table>
								</td>
							</tr>
						</table>
						</td>
					</tr>
					<tr>
					<td colspan="3" style="font-size: x-small; font-weight: bold;">styles!</td>
					</tr>

				</table>
			</td>
        </tr>
		<tr>
			<td style="text-align: right; vertical-align: top;"><b>Tables support includes</b>:</td>
			<td style="text-align: left; vertical-align: top">Tables support is pretty complete at this point. We
				support all the table-related XHTML tags, including table, caption, tbody, thead, tfoot, th, tr and td
				tags. Table elements can have styles attached to them--in this demo, to show an alternating row
				highlight color. In-cell alignment works, as do borders and border-collapse. Colspan, rowspan,
				cellpadding and cellspacing attributes are supported. Table and column widths can be set to a
				specific or proportional (em, %) value. Also included: complex nested table 
				layouts, auto layout, floated tables, and vertical alignment within cells.
			</td>
		</tr>
	</table>
</div>
<br/>

<h1>A Sample Report</h1>

<h2>assembled by Ali Enn</h2>

<table>
    <caption>3rd Qtr Financial Results</caption>
    <thead>
        <tr>
            <th style="text-align: left;">Department</th>
            <th style="text-align: right;">Gross Sales</th>
            <th style="text-align: right;">Expenses</th>
            <th style="text-align: right;">Net Profit</th>
        </tr>
    </thead>
    <tfoot>
    <tr class="totals">
        <td class="total" colspan="4">1,000,000.00</td>
    </tr>
    </tfoot>
    <tbody>
    <tr class="odd">
        <td class="desc" style="vertical-align: top;" rowspan="6">Pets</td>
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="odd">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>

    <tr class="odd">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>

    <tr class="odd">
        <td class="desc" style="vertical-align: top;" rowspan="7">Gardening</td>
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>

    <tr class="odd">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>

    <tr class="odd">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    <tr class="even">
        <td>12345.00</td>
        <td>1020.00</td>
        <td>9000.00</td>
    </tr>
    </tbody>
</table>
</body>
</html>