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