bind9.xsl.h 22.1 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 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
28
	"<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"
	" <xsl:template match=\"statistics[@version=&quot;3.0&quot;]\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
29
30
	" <html>\n"
	" <head>\n"
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
	" <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"
	" \n"
	" google.load(\"visualization\", \"1\", {packages:[\"corechart\"]});\n"
	" google.setOnLoadCallback(loadGraphs);\n"
	"\n"
	" var graphs=[];\n"
	" \n"
	" function drawChart(chart_title,target,data) {\n"
	" var data = google.visualization.arrayToDataTable(data);\n"
	"\n"
	" var options = {\n"
	" title: chart_title\n"
	" };\n"
	" \n"
	" var chart = new google.visualization.BarChart(document.getElementById(target));\n"
	" chart.draw(data, options);\n"
	" }\n"
	" \n"
	" function loadGraphs(){\n"
	" //alert(\"here we are!\");\n"
	" var g;\n"
	" \n"
	" // Server Incoming query Types\n"
	" while(g = graphs.shift()){\n"
	" // alert(\"going for: \" + g.target);\n"
	" drawChart(g.title,g.target,g.data);\n"
	" }\n"
	" \n"
	" }\n"
	" \n"
	" // Server Incoming Queries Types \n"
	" graphs.push({\n"
	" 'title' : \"Server Incoming Query Types\",\n"
	" 'target': 'chart_incoming_qtypes',\n"
	" '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"
	"\n"
	"\n"
	" // Server Incoming Requests \n"
	" graphs.push({\n"
	" 'title' : \"Server Incoming Requests\",\n"
	" 'target': 'chart_incoming_requests',\n"
	" 'data': [['Requests','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;opcode&quot;]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]});\n"
	" \n"
	" \n"
	" \n"
	" \n"
	" </script>\n"
	" </xsl:if>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
83
	" <style type=\"text/css\">\n"
84
	" body {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
85
86
87
	" font-family: sans-serif;\n"
	" background-color: #ffffff;\n"
	" color: #000000;\n"
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
	" font-size: 10pt;\n"
	" }\n"
	" \n"
	" .odd{\n"
	" background-color: #f0f0f0;\n"
	" }\n"
	" \n"
	" .even{\n"
	" background-color: #ffffff;\n"
	" }\n"
	" \n"
	" p.footer{\n"
	" font-style:italic;\n"
	" color: grey;\n"
	" }\n"
	"\n"
	" table {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
105
	" border-collapse: collapse;\n"
106
107
108
109
110
111
112
113
114
	" border: 1px solid grey;\n"
	" }\n"
	"\n"
	" table.counters{\n"
	" border: 1px solid grey;\n"
	" width: 500px;\n"
	" }\n"
	" \n"
	" table.counters th {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
115
	" text-align: center;\n"
116
117
118
119
120
121
122
123
124
125
126
127
128
129
	" border: 1px solid grey;\n"
	" width: 120px;\n"
	" }\n"
	" table.counters td{\n"
	" text-align:center;\n"
	" \n"
	" }\n"
	" \n"
	" table.counters tr:hover{\n"
	" background-color: #99ddff;\n"
	" }\n"
	" \n"
	" .totals {\n"
	" background-color: rgb(1,169,206);\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
130
	" color: #ffffff;\n"
131
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
132
	"\n"
133
	" td, th {\n"
134
135
	" padding-right: 5px;\n"
	" padding-left: 5px;\n"
136
137
	" border: 1px solid grey;\n"
	" }\n"
138
	"\n"
139
140
141
142
	" .header h1 {\n"
	" color: rgb(1,169,206);\n"
	" padding: 0px;\n"
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
143
	"\n"
144
	" .content {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
145
146
147
	" background-color: #ffffff;\n"
	" color: #000000;\n"
	" padding: 4px;\n"
148
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
149
	"\n"
150
	" .item {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
151
	" padding: 4px;\n"
152
153
	" text-align: right;\n"
	" }\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
154
	"\n"
155
	" .value {\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
156
157
	" padding: 4px;\n"
	" font-weight: bold;\n"
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
	" }\n"
	"\n"
	"\n"
	" h2 {\n"
	" color: grey;\n"
	" font-size: 14pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" }\n"
	" \n"
	" h3 {\n"
	" color: #444444;\n"
	" font-size: 12pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" \n"
	" }\n"
	" h4 {\n"
	" color: rgb(1,169,206);\n"
	" font-size: 10pt;\n"
	" width:500px;\n"
	" text-align:center;\n"
	" \n"
	" }\n"
	"\n"
	" .pie {\n"
	" width:500px;\n"
	" height: 500px;\n"
	" }\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
187
	"\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
188
	" </style>\n"
189
	" <title>ISC BIND 9 Statistics</title>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
190
191
	" </head>\n"
	" <body>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
192
	" <div class=\"header\">\n"
193
	" <h1>ISC Bind 9 Configuration and Statistics</h1>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
194
	" </div>\n"
195
196
197
198
199
200
201
202
	" <hr/>\n"
	" <h2>Server Times</h2>\n"
	" <table class=\"counters\">\n"
	" <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
203
	" </tr>\n"
204
205
206
207
208
	" <tr>\n"
	" <th>Sample time:</th>\n"
	" <td>\n"
	" <xsl:value-of select=\"server/current-time\"/>\n"
	" </td>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
209
210
211
	" </tr>\n"
	" </table>\n"
	" <br/>\n"
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
	" <h2>Incoming Requests</h2>\n"
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <div class=\"pie\" id=\"chart_incoming_requests\">[graph incoming requests]</div>\n"
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;opcode&quot;]/counter\">\n"
	" <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"
227
228
	" </tr>\n"
	" </xsl:for-each>\n"
229
230
231
232
233
234
	" <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"
235
236
	" </table>\n"
	" <br/>\n"
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
	" <h3>Incoming Queries by Type</h3>\n"
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <div class=\"pie\" id=\"chart_incoming_qtypes\">[graph incoming qtypes]</div>\n"
	" </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"
258
259
	" </tr>\n"
	" </xsl:for-each>\n"
260
261
262
263
264
265
	" <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"
266
267
	" </table>\n"
	" <br/>\n"
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
	" <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"
	" 'title': \"Outgoing queries for view: <xsl:value-of select=\"@name\"/>\",\n"
	" 'target': 'chart_outgoing_queries_view_<xsl:value-of select=\"@name\"/>',\n"
	" '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"
	" \n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
	" <div class=\"pie\" id=\"chart_outgoing_queries_view_{$target}\"/>\n"
	" </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"
302
303
304
305
306
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" <br/>\n"
	" </xsl:for-each>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
307
	" <h2>Server Statistics</h2>\n"
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
	" 'title' : \"Server Response Types\",\n"
	" 'target': 'chart_server_nsstat_restype',\n"
	" '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"
	" \n"
	" </script>\n"
	" <div class=\"pie\" id=\"chart_server_nsstat_restype\"/>\n"
	" </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
337
	" </xsl:for-each>\n"
338
	" </table>\n"
339
	" <br/>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
340
	" <h2>Zone Maintenance Statistics</h2>\n"
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
	" <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
	" <script type=\"text/javascript\">\n"
	" graphs.push({\n"
	" 'title' : \"Zone Maintenance Stats\",\n"
	" 'target': 'chart_server_zone_maint',\n"
	" 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type=&quot;zonestat&quot;]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
	" });\n"
	"\n"
	" </script>\n"
	" <!-- Non Mozilla specific markup -->\n"
	" <div class=\"pie\" id=\"chart_server_zone_maint\"/>\n"
	" </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
370
	" </xsl:for-each>\n"
371
	" </table>\n"
Tatuya JINMEI 神明達哉's avatar
regen    
Tatuya JINMEI 神明達哉 committed
372
	" <h2>Resolver Statistics (Common)</h2>\n"
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"server/counters[@type=&quot;restat&quot;]/counter\">\n"
	" <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"
390
	" </xsl:for-each>\n"
391
	" </table>\n"
392
	" <xsl:for-each select=\"views/view\">\n"
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
	" <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"
410
411
412
413
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" </xsl:for-each>\n"
414
	" <h3>Cache DB RRsets for View <xsl:value-of select=\"@name\"/></h3>\n"
415
	" <xsl:for-each select=\"views/view\">\n"
416
	" <table class=\"counters\">\n"
417
	" <xsl:for-each select=\"cache/rrset\">\n"
418
419
420
421
422
423
424
425
426
427
428
429
430
	" <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
431
432
433
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
434
435
	" <br/>\n"
	" </xsl:for-each>\n"
436
	" <h2>Socket I/O Statistics</h2>\n"
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
	" <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"
453
	" </xsl:for-each>\n"
454
	" </table>\n"
455
	" <br/>\n"
456
	" <br/>\n"
457
458
459
460
461
462
	" <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"
	" <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
463
	" <xsl:for-each select=\"zones/zone\">\n"
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
	" <xsl:if test=\"counters[@type=&quot;rcode&quot;]/counter[. &gt; 0]\">\n"
	" <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"
	" '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"
	" '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"
	" });\n"
	"\n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
	" <div class=\"pie\" id=\"chart_rescode_{$thisview}_{$target}\"/>\n"
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;rcode&quot;]/counter[.&gt;0 and @name != &quot;QryAuthAns&quot;]\">\n"
	" <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
494
	" <td>\n"
495
	" <xsl:value-of select=\".\"/>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
496
	" </td>\n"
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
	" </xsl:if>\n"
	" </xsl:for-each>\n"
	" </xsl:for-each>\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"
	" <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"
	" <xsl:if test=\"counters[@type=&quot;qtype&quot;]/counter[count(.) &gt; 0]\">\n"
	" <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"
	" '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"
	" '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"
	" });\n"
	"\n"
	" </script>\n"
	" <xsl:variable name=\"target\">\n"
	" <xsl:value-of select=\"@name\"/>\n"
	" </xsl:variable>\n"
	" <div class=\"pie\" id=\"chart_qtype_{$thisview2}_{$target}\"/>\n"
	" </xsl:if>\n"
	" <table class=\"counters\">\n"
	" <xsl:for-each select=\"counters[@type=&quot;qtype&quot;]/counter\">\n"
	" <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
540
	" <td>\n"
541
	" <xsl:value-of select=\".\"/>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
542
543
544
545
	" </td>\n"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
546
	" </xsl:if>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
547
	" </xsl:for-each>\n"
548
549
550
551
	" </xsl:for-each>\n"
	" <h2>Network Status</h2>\n"
	" <table class=\"counters\">\n"
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
552
553
554
555
556
557
558
559
560
	" <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"
561
562
563
564
565
566
567
568
	" <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
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
	" <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"
596
597
598
599
	" <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
600
601
602
603
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/type\"/>\n"
	" </td>\n"
	" </tr>\n"
604
605
	" <tr class=\"odd\">\n"
	" <th>Worker Threads</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
606
607
608
609
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/worker-threads\"/>\n"
	" </td>\n"
	" </tr>\n"
610
611
	" <tr class=\"even\">\n"
	" <th>Default Quantum</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
612
613
614
615
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/default-quantum\"/>\n"
	" </td>\n"
	" </tr>\n"
616
617
	" <tr class=\"odd\">\n"
	" <th>Tasks Running</th>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
618
619
620
621
622
623
	" <td>\n"
	" <xsl:value-of select=\"taskmgr/thread-model/tasks-running\"/>\n"
	" </td>\n"
	" </tr>\n"
	" </table>\n"
	" <br/>\n"
624
625
626
	" <h2>Tasks</h2>\n"
	" <table class=\"counters\">\n"
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
627
628
629
630
631
632
633
	" <th>ID</th>\n"
	" <th>Name</th>\n"
	" <th>References</th>\n"
	" <th>State</th>\n"
	" <th>Quantum</th>\n"
	" </tr>\n"
	" <xsl:for-each select=\"taskmgr/tasks/task\">\n"
634
635
636
637
638
639
640
641
	" <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
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
	" <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"
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
660
661
662
	" <br/>\n"
	" <h2>Memory Usage Summary</h2>\n"
	" <table class=\"counters\">\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
663
	" <xsl:for-each select=\"memory/summary/*\">\n"
664
665
666
667
668
669
670
671
672
673
674
675
676
	" <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
677
678
679
	" </tr>\n"
	" </xsl:for-each>\n"
	" </table>\n"
680
681
682
683
	" <br/>\n"
	" <h2>Memory Contexts</h2>\n"
	" <table class=\"counters\">\n"
	" <tr>\n"
Automatic Updater's avatar
regen    
Automatic Updater committed
684
685
686
687
688
689
690
691
692
693
694
695
	" <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"
696
697
698
699
700
701
702
703
	" <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
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
	" <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"
737
738
	" <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
739
740
741
742
	" </body>\n"
	" </html>\n"
	" </xsl:template>\n"
	"</xsl:stylesheet>\n";