bind9.xsl.h 28.2 KB
Newer Older
Automatic Updater's avatar
regen    
Automatic Updater committed
1
/*
Tinderbox User's avatar
regen    
Tinderbox User committed
2
 * Generated by convertxsl.pl 1.14 2008/07/17 23:43:26 jinmei Exp  
3
 * From <!-- %Id: bind9.xsl 1.21 2009/01/27 23:47:54 tbox Exp %
Automatic Updater's avatar
regen    
Automatic Updater committed
4
 */
5
static char xslmsg[] =
Automatic Updater's avatar
regen    
Automatic Updater committed
6
7
	"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
	"<!--\n"
Tinderbox User's avatar
regen    
Tinderbox User committed
8
	" - Copyright (C) 2006-2009, 2012-2014 Internet Systems Consortium, Inc. (\"ISC\")\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
9
10
11
12
13
14
15
16
17
18
19
20
21
	" -\n"
	" - Permission to use, copy, modify, and/or distribute this software for any\n"
	" - purpose with or without fee is hereby granted, provided that the above\n"
	" - copyright notice and this permission notice appear in all copies.\n"
	" -\n"
	" - THE SOFTWARE IS PROVIDED \"AS IS\" AND ISC DISCLAIMS ALL WARRANTIES WITH\n"
	" - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n"
	" - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,\n"
	" - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n"
	" - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\n"
	" - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n"
	" - PERFORMANCE OF THIS SOFTWARE.\n"
	"-->\n"
Tinderbox User's avatar
regen    
Tinderbox User committed
22
	"\n"
Tinderbox User's avatar
regen    
Tinderbox User committed
23
24
	"<!-- $Id$ -->\n"
	"\n"
Tinderbox User's avatar
regen    
Tinderbox User committed
25
	"<!-- \045Id: bind9.xsl,v 1.21 2009/01/27 23:47:54 tbox Exp \045 -->\n"
26
27
	"<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns=\"http://www.w3.org/1999/xhtml\" version=\"1.0\">\n"
	" <xsl:output method=\"html\" indent=\"yes\" version=\"4.0\"/>\n"
28
	" <xsl:template match=\"statistics[@version=&quot;3.5&quot;]\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
29
30
	" <html>\n"
	" <head>\n"
31
32
33
34
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"/>\n"
	" <script type=\"text/javascript\">\n"
Evan Hunt's avatar
Evan Hunt committed
35
	"\n"
36
37
38
39
	" google.load(\"visualization\", \"1\", {packages:[\"corechart\"]});\n"
	" google.setOnLoadCallback(loadGraphs);\n"
	"\n"
	" var graphs=[];\n"
Evan Hunt's avatar
Evan Hunt committed
40
41
	"\n"
	" function drawChart(chart_title,target,style,data) {\n"
42
43
44
45
46
	" var data = google.visualization.arrayToDataTable(data);\n"
	"\n"
	" var options = {\n"
	" title: chart_title\n"
	" };\n"
Evan Hunt's avatar
Evan Hunt committed
47
48
49
50
	"\n"
	" var chart;\n"
	" if (style == \"barchart\") {\n"
	" chart = new google.visualization.BarChart(document.getElementById(target));\n"
51
	" chart.draw(data, options);\n"
Evan Hunt's avatar
Evan Hunt committed
52
53
54
55
	" } else if (style == \"piechart\") {\n"
	" chart = new google.visualization.PieChart(document.getElementById(target));\n"
	" chart.draw(data, options);\n"
	" }\n"
56
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
57
	"\n"
58
59
	" function loadGraphs(){\n"
	" var g;\n"
Evan Hunt's avatar
Evan Hunt committed
60
	"\n"
61
62
	" while(g = graphs.shift()){\n"
	" // alert(\"going for: \" + g.target);\n"
63
	" if(g.data.length > 1){\n"
Evan Hunt's avatar
Evan Hunt committed
64
	" drawChart(g.title,g.target,g.style,g.data);\n"
65
	" }\n"
66
	" }\n"
67
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
68
69
70
	"\n"
	" <xsl:if test=\"server/counters[@type=&quot;qtype&quot;]/counter\">\n"
	" // Server Incoming Query Types\n"
71
72
73
	" graphs.push({\n"
	" 'title' : \"Server Incoming Query Types\",\n"
	" 'target': 'chart_incoming_qtypes',\n"
Evan Hunt's avatar
Evan Hunt committed
74
	" 'style': 'barchart',\n"
75
76
	" 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;qtype&quot;]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
	" });\n"
Evan Hunt's avatar
Evan Hunt committed
77
	" </xsl:if>\n"
78
	"\n"
Evan Hunt's avatar
Evan Hunt committed
79
80
	" <xsl:if test=\"server/counters[@type=&quot;opcode&quot;]/counter\">\n"
	" // Server Incoming Requests by opcode\n"
81
	" graphs.push({\n"
Evan Hunt's avatar
Evan Hunt committed
82
83
84
85
86
	" 'title' : \"Server Incoming Requests by DNS Opcode\",\n"
	" 'target': 'chart_incoming_opcodes',\n"
	" 'style': 'barchart',\n"
	" 'data': [['Opcode','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;opcode&quot;]/counter[. &gt; 0 or substring(@name,1,3) != 'RES']\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]});\n"
	" </xsl:if>\n"
87
88
	" </script>\n"
	" </xsl:if>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
89
	" <style type=\"text/css\">\n"
90
	" body {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
91
92
93
	" font-family: sans-serif;\n"
	" background-color: #ffffff;\n"
	" color: #000000;\n"
94
95
	" font-size: 10pt;\n"
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
96
	"\n"
97
98
99
	" .odd{\n"
	" background-color: #f0f0f0;\n"
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
100
	"\n"
101
102
103
	" .even{\n"
	" background-color: #ffffff;\n"
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
104
	"\n"
105
106
107
108
109
110
	" p.footer{\n"
	" font-style:italic;\n"
	" color: grey;\n"
	" }\n"
	"\n"
	" table {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
111
	" border-collapse: collapse;\n"
112
113
114
115
116
117
118
119
	" border: 1px solid grey;\n"
	" }\n"
	"\n"
	" table.counters{\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" table.counters th {\n"
Evan Hunt's avatar
Evan Hunt committed
120
	" text-align: right;\n"
121
	" border: 1px solid grey;\n"
Evan Hunt's avatar
Evan Hunt committed
122
	" width: 150px;\n"
123
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
124
125
126
	" table.counters td {\n"
	" text-align: right;\n"
	" font-family: monospace;\n"
127
128
129
130
	" }\n"
	" table.counters tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
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
211
212
213
	"\n"
	" table.info {\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" table.info th {\n"
	" text-align: center;\n"
	" border: 1px solid grey;\n"
	" width: 150px;\n"
	" }\n"
	" table.info td {\n"
	" text-align: center;\n"
	" }\n"
	" table.info tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
	"\n"
	" table.tasks {\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" table.tasks th {\n"
	" text-align: center;\n"
	" border: 1px solid grey;\n"
	" width: 150px;\n"
	" }\n"
	" table.tasks td {\n"
	" text-align: right;\n"
	" font-family: monospace;\n"
	" }\n"
	" table.tasks td:nth-child(2) {\n"
	" text-align: center;\n"
	" }\n"
	" table.tasks td:nth-child(4) {\n"
	" text-align: center;\n"
	" }\n"
	" table.tasks tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
	"\n"
	" table.netstat {\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" table.netstat th {\n"
	" text-align: center;\n"
	" border: 1px solid grey;\n"
	" width: 150px;\n"
	" }\n"
	" table.netstat td {\n"
	" text-align: center;\n"
	" }\n"
	" table.netstat td:nth-child(4) {\n"
	" text-align: right;\n"
	" font-family: monospace;\n"
	" }\n"
	" table.netstat td:nth-child(7) {\n"
	" text-align: left;\n"
	" }\n"
	" table.netstat tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
	"\n"
	" table.mctx {\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" table.mctx th {\n"
	" text-align: center;\n"
	" border: 1px solid grey;\n"
	" }\n"
	" table.mctx td {\n"
	" text-align: right;\n"
	" font-family: monospace;\n"
	" }\n"
	" table.mctx td:nth-child(-n+2) {\n"
	" text-align: left;\n"
	" width: 100px;\n"
	" }\n"
	" table.mctx tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
	"\n"
214
215
	" .totals {\n"
	" background-color: rgb(1,169,206);\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
216
	" color: #ffffff;\n"
217
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
218
	"\n"
219
	" td, th {\n"
220
221
	" padding-right: 5px;\n"
	" padding-left: 5px;\n"
222
223
	" border: 1px solid grey;\n"
	" }\n"
224
	"\n"
225
226
227
228
	" .header h1 {\n"
	" color: rgb(1,169,206);\n"
	" padding: 0px;\n"
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
229
	"\n"
230
	" .content {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
231
232
233
	" background-color: #ffffff;\n"
	" color: #000000;\n"
	" padding: 4px;\n"
234
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
235
	"\n"
236
	" .item {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
237
	" padding: 4px;\n"
238
239
	" text-align: right;\n"
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
240
	"\n"
241
	" .value {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
242
243
	" padding: 4px;\n"
	" font-weight: bold;\n"
244
245
246
247
248
249
250
251
252
	" }\n"
	"\n"
	"\n"
	" h2 {\n"
	" color: grey;\n"
	" font-size: 14pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" }\n"
Evan Hunt's avatar
Evan Hunt committed
253
	"\n"
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
	" h3 {\n"
	" color: #444444;\n"
	" font-size: 12pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" }\n"
	" h4 {\n"
	" color: rgb(1,169,206);\n"
	" font-size: 10pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" }\n"
	"\n"
	" .pie {\n"
	" width:500px;\n"
	" height: 500px;\n"
	" }\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
271
	"\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
272
	" </style>\n"
273
	" <title>ISC BIND 9 Statistics</title>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
274
275
	" </head>\n"
	" <body>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
276
	" <div class=\"header\">\n"
277
	" <h1>ISC Bind 9 Configuration and Statistics</h1>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
278
	" </div>\n"
279
280
281
282
283
284
285
	" <p>Alternate statistics views: <a href=\"/\">All</a>,\n"
	" <a href=\"/xml/v3/status\">Status</a>,\n"
	" <a href=\"/xml/v3/server\">Server</a>,\n"
	" <a href=\"/xml/v3/zones\">Zones</a>,\n"
	" <a href=\"/xml/v3/net\">Network</a>,\n"
	" <a href=\"/xml/v3/tasks\">Tasks</a> and\n"
	" <a href=\"/xml/v3/mem\">Memory</a></p>\n"
286
	" <hr/>\n"
Evan Hunt's avatar
Evan Hunt committed
287
288
	" <h2>Server Status</h2>\n"
	" <table class=\"info\">\n"
289
290
291
292
293
	" <tr>\n"
	" <th>Boot time:</th>\n"
	" <td>\n"
	" <xsl:value-of select=\"server/boot-time\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
294
	" </tr>\n"
295
	" <tr>\n"
296
297
298
299
300
301
302
	" <th>Last reconfigured:</th>\n"
	" <td>\n"
	" <xsl:value-of select=\"server/config-time\"/>\n"
	" </td>\n"
	" </tr>\n"
	" <tr>\n"
	" <th>Current time:</th>\n"
303
304
305
	" <td>\n"
	" <xsl:value-of select=\"server/current-time\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
306
307
308
	" </tr>\n"
	" </table>\n"
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
309
	" <xsl:if test=\"server/counters[@type=&quot;opcode&quot;]/counter[. &gt; 0]\">\n"
310
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
Evan Hunt's avatar
Evan Hunt committed
311
	" <h2>Incoming Requests by DNS Opcode</h2>\n"
312
	" <!-- Non Mozilla specific markup -->\n"
Evan Hunt's avatar
Evan Hunt committed
313
314
315
	" <div class=\"pie\" id=\"chart_incoming_opcodes\">\n"
	" [cannot display chart]\n"
	" </div>\n"
316
317
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
Evan Hunt's avatar
Evan Hunt committed
318
	" <xsl:for-each select=\"server/counters[@type=&quot;opcode&quot;]/counter[. &gt; 0 or substring(@name,1,3) != 'RES']\">\n"
319
320
321
322
323
324
325
326
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <tr>\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
327
328
	" </tr>\n"
	" </xsl:for-each>\n"
329
330
331
332
333
334
	" <tr>\n"
	" <th class=\"totals\">Total:</th>\n"
	" <td class=\"totals\">\n"
	" <xsl:value-of select=\"sum(server/counters[@type=&quot;opcode&quot;]/counter)\"/>\n"
	" </td>\n"
	" </tr>\n"
335
336
	" </table>\n"
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
337
338
	" </xsl:if>\n"
	" <xsl:if test=\"server/counters[@type=&quot;qtype&quot;]/counter\">\n"
339
340
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
Evan Hunt's avatar
Evan Hunt committed
341
342
343
344
	" <h3>Incoming Queries by Query Type</h3>\n"
	" <div class=\"pie\" id=\"chart_incoming_qtypes\">\n"
	" [cannot display chart]\n"
	" </div>\n"
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;qtype&quot;]/counter\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
362
363
	" </tr>\n"
	" </xsl:for-each>\n"
364
365
366
367
368
369
	" <tr>\n"
	" <th class=\"totals\">Total:</th>\n"
	" <td class=\"totals\">\n"
	" <xsl:value-of select=\"sum(server/counters[@type=&quot;qtype&quot;]/counter)\"/>\n"
	" </td>\n"
	" </tr>\n"
370
371
	" </table>\n"
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
372
373
	" </xsl:if>\n"
	" <xsl:if test=\"views/view[count(counters[@type=&quot;resqtype&quot;]/counter) &gt; 0]\">\n"
374
375
376
377
378
379
380
	" <h2>Outgoing Queries per view</h2>\n"
	" <xsl:for-each select=\"views/view[count(counters[@type=&quot;resqtype&quot;]/counter) &gt; 0]\">\n"
	" <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
Evan Hunt's avatar
Evan Hunt committed
381
	" 'title': \"Outgoing Queries for view: <xsl:value-of select=\"@name\"/>\",\n"
382
	" 'target': 'chart_outgoing_queries_view_<xsl:value-of select=\"@name\"/>',\n"
Evan Hunt's avatar
Evan Hunt committed
383
	" 'style': 'barchart',\n"
384
385
386
387
388
389
	" 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type=&quot;resqtype&quot;]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
	" });\n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
Evan Hunt's avatar
Evan Hunt committed
390
	" <div class=\"pie\" id=\"chart_outgoing_queries_view_{$target}\">[no data to display]</div>\n"
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;resqtype&quot;]/counter\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class1\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class1}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
408
409
410
411
412
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" <br/>\n"
	" </xsl:for-each>\n"
Evan Hunt's avatar
Evan Hunt committed
413
414
	" </xsl:if>\n"
	" <xsl:if test=\"server/counters[@type=&quot;nsstat&quot;]/counter[.&gt;0]\">\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
415
	" <h2>Server Statistics</h2>\n"
416
417
418
419
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
420
	" 'title' : \"Server Counters\",\n"
421
	" 'target': 'chart_server_nsstat_restype',\n"
Evan Hunt's avatar
Evan Hunt committed
422
	" 'style': 'barchart',\n"
423
424
425
	" 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;nsstat&quot;]/counter[.&gt;0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
	" });\n"
	" </script>\n"
Evan Hunt's avatar
Evan Hunt committed
426
	" <div class=\"pie\" id=\"chart_server_nsstat_restype\">[no data to display]</div>\n"
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;nsstat&quot;]/counter[.&gt;0]\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class2\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class2}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
445
	" </xsl:for-each>\n"
446
	" </table>\n"
447
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
448
449
	" </xsl:if>\n"
	" <xsl:if test=\"server/counters[@type=&quot;zonestat&quot;]/counter[.&gt;0]\">\n"
450
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
Evan Hunt's avatar
Evan Hunt committed
451
	" <h2>Zone Maintenance Statistics</h2>\n"
452
453
454
455
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
	" 'title' : \"Zone Maintenance Stats\",\n"
	" 'target': 'chart_server_zone_maint',\n"
Evan Hunt's avatar
Evan Hunt committed
456
457
	" 'style': 'barchart',\n"
	" 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;zonestat&quot;]/counter[.&gt;0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
458
459
460
	" });\n"
	" </script>\n"
	" <!-- Non Mozilla specific markup -->\n"
Evan Hunt's avatar
Evan Hunt committed
461
	" <div class=\"pie\" id=\"chart_server_zone_maint\">[no data to display]</div>\n"
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;zonestat&quot;]/counter\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class3\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class3}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
480
	" </xsl:for-each>\n"
481
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
482
483
	" </xsl:if>\n"
	" <xsl:if test=\"server/counters[@type=&quot;resstat&quot;]/counter[.&gt;0]\">\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
484
	" <h2>Resolver Statistics (Common)</h2>\n"
485
	" <table class=\"counters\">\n"
486
	" <xsl:for-each select=\"server/counters[@type=&quot;resstat&quot;]/counter\">\n"
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class4\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class4}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
502
	" </xsl:for-each>\n"
503
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
504
	" </xsl:if>\n"
505
	" <xsl:for-each select=\"views/view\">\n"
Evan Hunt's avatar
Evan Hunt committed
506
	" <xsl:if test=\"counters[@type=&quot;resstats&quot;]/counter[.&gt;0]\">\n"
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
	" <h3>Resolver Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;resstats&quot;]/counter[.&gt;0]\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class5\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class5}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
524
525
526
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
527
	" </xsl:if>\n"
528
	" </xsl:for-each>\n"
529
	" <xsl:for-each select=\"views/view\">\n"
Evan Hunt's avatar
Evan Hunt committed
530
	" <xsl:if test=\"counters[@type=&quot;adbstat&quot;]/counter[.&gt;0]\">\n"
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
	" <h3>ADB Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;adbstat&quot;]/counter[.&gt;0]\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class5\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class5}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
551
	" </xsl:if>\n"
552
553
554
	" </xsl:for-each>\n"
	"\n"
	" <xsl:for-each select=\"views/view\">\n"
Evan Hunt's avatar
Evan Hunt committed
555
	" <xsl:if test=\"counters[@type=&quot;cachestats&quot;]/counter[.&gt;0]\">\n"
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
	" <h3>Cache Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;cachestats&quot;]/counter[.&gt;0]\">\n"
	" <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class5\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class5}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
576
	" </xsl:if>\n"
577
578
	" </xsl:for-each>\n"
	"\n"
579
	" <xsl:for-each select=\"views/view\">\n"
Evan Hunt's avatar
Evan Hunt committed
580
581
	" <xsl:if test=\"cache/rrset\">\n"
	" <h3>Cache DB RRsets for View <xsl:value-of select=\"@name\"/></h3>\n"
582
	" <table class=\"counters\">\n"
583
	" <xsl:for-each select=\"cache/rrset\">\n"
584
585
586
587
588
589
590
591
592
593
594
595
596
	" <xsl:variable name=\"css-class6\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class6}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\"counter\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
597
598
599
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
600
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
601
	" </xsl:if>\n"
602
	" </xsl:for-each>\n"
Evan Hunt's avatar
Evan Hunt committed
603
604
	"\n"
	" <xsl:if test=\"server/counters[@type=&quot;sockstat&quot;]/counter[.&gt;0]\">\n"
605
	" <h2>Socket I/O Statistics</h2>\n"
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;sockstat&quot;]/counter[.&gt;0]\">\n"
	" <xsl:variable name=\"css-class7\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class7}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
	" </tr>\n"
622
	" </xsl:for-each>\n"
623
	" </table>\n"
624
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
625
626
627
628
	" </xsl:if>\n"
	" <xsl:if test=\"views/view[zones/zone/counters[@type=&quot;qtype&quot;]/counter &gt;0]\">\n"
	" <h2>Received QTYPES per view/zone</h2>\n"
	" <xsl:for-each select=\"views/view[zones/zone/counters[@type=&quot;qtype&quot;]/counter &gt;0]\">\n"
629
630
631
632
	" <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
	" <xsl:variable name=\"thisview\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
633
	" <xsl:for-each select=\"zones/zone\">\n"
Evan Hunt's avatar
Evan Hunt committed
634
	" <xsl:if test=\"counters[@type=&quot;qtype&quot;]/counter[count(.) &gt; 0]\">\n"
635
636
637
638
639
	" <h4>Zone <xsl:value-of select=\"@name\"/></h4>\n"
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
Evan Hunt's avatar
Evan Hunt committed
640
641
642
643
	" 'title': \"Query types for zone <xsl:value-of select=\"@name\"/>\",\n"
	" 'target': 'chart_qtype_<xsl:value-of select=\"../../@name\"/>_<xsl:value-of select=\"@name\"/>',\n"
	" 'style': 'barchart',\n"
	" 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type=&quot;qtype&quot;]/counter[.&gt;0 and @name != &quot;QryAuthAns&quot;]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
644
645
646
647
648
649
	" });\n"
	"\n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
Evan Hunt's avatar
Evan Hunt committed
650
	" <div class=\"pie\" id=\"chart_qtype_{$thisview}_{$target}\">[no data to display]</div>\n"
651
652
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
Evan Hunt's avatar
Evan Hunt committed
653
	" <xsl:for-each select=\"counters[@type=&quot;qtype&quot;]/counter\">\n"
654
655
656
657
658
659
660
661
662
663
664
	" <xsl:sort select=\".\"/>\n"
	" <xsl:variable name=\"css-class10\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class10}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
665
	" <td>\n"
666
	" <xsl:value-of select=\".\"/>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
667
	" </td>\n"
668
669
670
671
672
673
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" </xsl:if>\n"
	" </xsl:for-each>\n"
	" </xsl:for-each>\n"
Evan Hunt's avatar
Evan Hunt committed
674
675
676
677
	" </xsl:if>\n"
	" <xsl:if test=\"views/view[zones/zone/counters[@type=&quot;rcode&quot;]/counter &gt;0]\">\n"
	" <h2>Response Codes per view/zone</h2>\n"
	" <xsl:for-each select=\"views/view[zones/zone/counters[@type=&quot;rcode&quot;]/counter &gt;0]\">\n"
678
679
680
681
682
	" <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
	" <xsl:variable name=\"thisview2\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
	" <xsl:for-each select=\"zones/zone\">\n"
Evan Hunt's avatar
Evan Hunt committed
683
	" <xsl:if test=\"counters[@type=&quot;rcode&quot;]/counter[. &gt; 0]\">\n"
684
685
686
687
688
	" <h4>Zone <xsl:value-of select=\"@name\"/></h4>\n"
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
Evan Hunt's avatar
Evan Hunt committed
689
690
691
692
	" 'title': \"Response codes for zone <xsl:value-of select=\"@name\"/>\",\n"
	" 'target': 'chart_rescode_<xsl:value-of select=\"../../@name\"/>_<xsl:value-of select=\"@name\"/>',\n"
	" 'style': 'barchart',\n"
	" 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type=&quot;rcode&quot;]/counter[.&gt;0 and @name != &quot;QryAuthAns&quot;]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
693
694
695
696
697
698
	" });\n"
	"\n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
Evan Hunt's avatar
Evan Hunt committed
699
	" <div class=\"pie\" id=\"chart_rescode_{$thisview2}_{$target}\">[no data to display]</div>\n"
700
701
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
Evan Hunt's avatar
Evan Hunt committed
702
	" <xsl:for-each select=\"counters[@type=&quot;rcode&quot;]/counter[.&gt;0 and @name != &quot;QryAuthAns&quot;]\">\n"
703
704
705
706
707
708
709
710
711
712
713
	" <xsl:sort select=\".\"/>\n"
	" <xsl:variable name=\"css-class11\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class11}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
714
	" <td>\n"
715
	" <xsl:value-of select=\".\"/>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
716
717
718
719
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
720
	" </xsl:if>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
721
	" </xsl:for-each>\n"
722
	" </xsl:for-each>\n"
Evan Hunt's avatar
Evan Hunt committed
723
724
	" </xsl:if>\n"
	" <xsl:if test=\"socketmgr/sockets/socket\">\n"
725
	" <h2>Network Status</h2>\n"
Evan Hunt's avatar
Evan Hunt committed
726
	" <table class=\"netstat\">\n"
727
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
728
729
730
731
732
733
734
735
736
	" <th>ID</th>\n"
	" <th>Name</th>\n"
	" <th>Type</th>\n"
	" <th>References</th>\n"
	" <th>LocalAddress</th>\n"
	" <th>PeerAddress</th>\n"
	" <th>State</th>\n"
	" </tr>\n"
	" <xsl:for-each select=\"socketmgr/sockets/socket\">\n"
737
738
739
740
741
742
743
744
	" <xsl:sort select=\"id\"/>\n"
	" <xsl:variable name=\"css-class12\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class12}\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
	" <td>\n"
	" <xsl:value-of select=\"id\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"name\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"type\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"references\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"local-address\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"peer-address\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:for-each select=\"states\">\n"
	" <xsl:value-of select=\".\"/>\n"
	" </xsl:for-each>\n"
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
772
773
	" </xsl:if>\n"
	" <xsl:if test=\"taskmgr/thread-model/type\">\n"
774
775
776
777
	" <h2>Task Manager Configuration</h2>\n"
	" <table class=\"counters\">\n"
	" <tr>\n"
	" <th class=\"even\">Thread-Model</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
778
779
780
781
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/type\"/>\n"
	" </td>\n"
	" </tr>\n"
782
783
	" <tr class=\"odd\">\n"
	" <th>Worker Threads</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
784
785
786
787
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/worker-threads\"/>\n"
	" </td>\n"
	" </tr>\n"
788
789
	" <tr class=\"even\">\n"
	" <th>Default Quantum</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
790
791
792
793
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/default-quantum\"/>\n"
	" </td>\n"
	" </tr>\n"
794
795
	" <tr class=\"odd\">\n"
	" <th>Tasks Running</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
796
797
798
799
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/tasks-running\"/>\n"
	" </td>\n"
	" </tr>\n"
Evan Hunt's avatar
Evan Hunt committed
800
	" <tr class=\"even\">\n"
801
802
803
804
805
	" <th>Tasks Ready</th>\n"
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/tasks-ready\"/>\n"
	" </td>\n"
	" </tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
806
807
	" </table>\n"
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
808
809
	" </xsl:if>\n"
	" <xsl:if test=\"taskmgr/tasks/task\">\n"
810
	" <h2>Tasks</h2>\n"
Evan Hunt's avatar
Evan Hunt committed
811
	" <table class=\"tasks\">\n"
812
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
813
814
815
816
817
	" <th>ID</th>\n"
	" <th>Name</th>\n"
	" <th>References</th>\n"
	" <th>State</th>\n"
	" <th>Quantum</th>\n"
818
	" <th>Events</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
819
820
	" </tr>\n"
	" <xsl:for-each select=\"taskmgr/tasks/task\">\n"
821
822
823
824
825
826
827
828
	" <xsl:sort select=\"name\"/>\n"
	" <xsl:variable name=\"css-class14\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class14}\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
	" <td>\n"
	" <xsl:value-of select=\"id\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"name\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"references\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"state\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"quantum\"/>\n"
	" </td>\n"
844
845
846
	" <td>\n"
	" <xsl:value-of select=\"events\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
847
848
849
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
850
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
851
852
	" </xsl:if>\n"
	" <xsl:if test=\"memory/summary\">\n"
853
854
	" <h2>Memory Usage Summary</h2>\n"
	" <table class=\"counters\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
855
	" <xsl:for-each select=\"memory/summary/*\">\n"
856
857
858
859
860
861
862
863
864
865
866
867
868
	" <xsl:variable name=\"css-class13\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class13}\">\n"
	" <th>\n"
	" <xsl:value-of select=\"name()\"/>\n"
	" </th>\n"
	" <td>\n"
	" <xsl:value-of select=\".\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
869
870
871
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
872
	" <br/>\n"
Evan Hunt's avatar
Evan Hunt committed
873
874
	" </xsl:if>\n"
	" <xsl:if test=\"memory/contexts/context\">\n"
875
	" <h2>Memory Contexts</h2>\n"
Evan Hunt's avatar
Evan Hunt committed
876
	" <table class=\"mctx\">\n"
877
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
878
879
880
881
882
883
884
885
886
887
888
889
	" <th>ID</th>\n"
	" <th>Name</th>\n"
	" <th>References</th>\n"
	" <th>TotalUse</th>\n"
	" <th>InUse</th>\n"
	" <th>MaxUse</th>\n"
	" <th>BlockSize</th>\n"
	" <th>Pools</th>\n"
	" <th>HiWater</th>\n"
	" <th>LoWater</th>\n"
	" </tr>\n"
	" <xsl:for-each select=\"memory/contexts/context\">\n"
890
891
892
893
894
895
896
897
	" <xsl:sort select=\"total\" data-type=\"number\" order=\"descending\"/>\n"
	" <xsl:variable name=\"css-class14\">\n"
	" <xsl:choose>\n"
	" <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
	" <xsl:otherwise>odd</xsl:otherwise>\n"
	" </xsl:choose>\n"
	" </xsl:variable>\n"
	" <tr class=\"{$css-class14}\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
	" <td>\n"
	" <xsl:value-of select=\"id\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"name\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"references\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"total\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"inuse\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"maxinuse\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"blocksize\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"pools\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"hiwater\"/>\n"
	" </td>\n"
	" <td>\n"
	" <xsl:value-of select=\"lowater\"/>\n"
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
Evan Hunt's avatar
Evan Hunt committed
931
	" </xsl:if>\n"
932
933
	" <hr/>\n"
	" <p class=\"footer\">Internet Systems Consortium Inc.<br/><a href=\"http://www.isc.org\">http://www.isc.org</a></p>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
934
935
936
937
	" </body>\n"
	" </html>\n"
	" </xsl:template>\n"
	"</xsl:stylesheet>\n";