1 /* $NetBSD: bind9.xsl.h,v 1.7 2014/12/10 04:37:51 christos Exp $ */
4 * Generated by convertxsl.pl 1.14 2008/07/17 23:43:26 jinmei Exp
5 * From <!-- %Id: bind9.xsl 1.21 2009/01/27 23:47:54 tbox Exp %
8 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
10 " - Copyright (C) 2006-2009, 2012-2014 Internet Systems Consortium, Inc. (\"ISC\")\n"
12 " - Permission to use, copy, modify, and/or distribute this software for any\n"
13 " - purpose with or without fee is hereby granted, provided that the above\n"
14 " - copyright notice and this permission notice appear in all copies.\n"
16 " - THE SOFTWARE IS PROVIDED \"AS IS\" AND ISC DISCLAIMS ALL WARRANTIES WITH\n"
17 " - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n"
18 " - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,\n"
19 " - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n"
20 " - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE\n"
21 " - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n"
22 " - PERFORMANCE OF THIS SOFTWARE.\n"
27 "<!-- \045Id: bind9.xsl,v 1.21 2009/01/27 23:47:54 tbox Exp \045 -->\n"
28 "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns=\"http://www.w3.org/1999/xhtml\" version=\"1.0\">\n"
29 " <xsl:output method=\"html\" indent=\"yes\" version=\"4.0\"/>\n"
30 " <xsl:template match=\"statistics[@version="3.5"]\">\n"
33 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
34 " <!-- Non Mozilla specific markup -->\n"
35 " <script type=\"text/javascript\" src=\"https://www.google.com/jsapi\"/>\n"
36 " <script type=\"text/javascript\">\n"
38 " google.load(\"visualization\", \"1\", {packages:[\"corechart\"]});\n"
39 " google.setOnLoadCallback(loadGraphs);\n"
43 " function drawChart(chart_title,target,style,data) {\n"
44 " var data = google.visualization.arrayToDataTable(data);\n"
47 " title: chart_title\n"
51 " if (style == \"barchart\") {\n"
52 " chart = new google.visualization.BarChart(document.getElementById(target));\n"
53 " chart.draw(data, options);\n"
54 " } else if (style == \"piechart\") {\n"
55 " chart = new google.visualization.PieChart(document.getElementById(target));\n"
56 " chart.draw(data, options);\n"
60 " function loadGraphs(){\n"
63 " while(g = graphs.shift()){\n"
64 " // alert(\"going for: \" + g.target);\n"
65 " if(g.data.length > 1){\n"
66 " drawChart(g.title,g.target,g.style,g.data);\n"
71 " <xsl:if test=\"server/counters[@type="qtype"]/counter\">\n"
72 " // Server Incoming Query Types\n"
74 " 'title' : \"Server Incoming Query Types\",\n"
75 " 'target': 'chart_incoming_qtypes',\n"
76 " 'style': 'barchart',\n"
77 " 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type="qtype"]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
81 " <xsl:if test=\"server/counters[@type="opcode"]/counter\">\n"
82 " // Server Incoming Requests by opcode\n"
84 " 'title' : \"Server Incoming Requests by DNS Opcode\",\n"
85 " 'target': 'chart_incoming_opcodes',\n"
86 " 'style': 'barchart',\n"
87 " 'data': [['Opcode','Counter'],<xsl:for-each select=\"server/counters[@type="opcode"]/counter[. > 0 or substring(@name,1,3) != 'RES']\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]});\n"
91 " <style type=\"text/css\">\n"
93 " font-family: sans-serif;\n"
94 " background-color: #ffffff;\n"
100 " background-color: #f0f0f0;\n"
104 " background-color: #ffffff;\n"
108 " font-style:italic;\n"
113 " border-collapse: collapse;\n"
114 " border: 1px solid grey;\n"
118 " border: 1px solid grey;\n"
121 " table.counters th {\n"
122 " text-align: right;\n"
123 " border: 1px solid grey;\n"
126 " table.counters td {\n"
127 " text-align: right;\n"
128 " font-family: monospace;\n"
130 " table.counters tr:hover{\n"
131 " background-color: #99ddff;\n"
135 " border: 1px solid grey;\n"
139 " text-align: center;\n"
140 " border: 1px solid grey;\n"
144 " text-align: center;\n"
146 " table.info tr:hover{\n"
147 " background-color: #99ddff;\n"
151 " border: 1px solid grey;\n"
154 " table.tasks th {\n"
155 " text-align: center;\n"
156 " border: 1px solid grey;\n"
159 " table.tasks td {\n"
160 " text-align: right;\n"
161 " font-family: monospace;\n"
163 " table.tasks td:nth-child(2) {\n"
164 " text-align: center;\n"
166 " table.tasks td:nth-child(4) {\n"
167 " text-align: center;\n"
169 " table.tasks tr:hover{\n"
170 " background-color: #99ddff;\n"
174 " border: 1px solid grey;\n"
177 " table.netstat th {\n"
178 " text-align: center;\n"
179 " border: 1px solid grey;\n"
182 " table.netstat td {\n"
183 " text-align: center;\n"
185 " table.netstat td:nth-child(4) {\n"
186 " text-align: right;\n"
187 " font-family: monospace;\n"
189 " table.netstat td:nth-child(7) {\n"
190 " text-align: left;\n"
192 " table.netstat tr:hover{\n"
193 " background-color: #99ddff;\n"
197 " border: 1px solid grey;\n"
201 " text-align: center;\n"
202 " border: 1px solid grey;\n"
205 " text-align: right;\n"
206 " font-family: monospace;\n"
208 " table.mctx td:nth-child(-n+2) {\n"
209 " text-align: left;\n"
212 " table.mctx tr:hover{\n"
213 " background-color: #99ddff;\n"
217 " background-color: rgb(1,169,206);\n"
222 " padding-right: 5px;\n"
223 " padding-left: 5px;\n"
224 " border: 1px solid grey;\n"
228 " color: rgb(1,169,206);\n"
233 " background-color: #ffffff;\n"
240 " text-align: right;\n"
245 " font-weight: bold;\n"
251 " font-size: 14pt;\n"
253 " text-align:center;\n"
258 " font-size: 12pt;\n"
260 " text-align:center;\n"
263 " color: rgb(1,169,206);\n"
264 " font-size: 10pt;\n"
266 " text-align:center;\n"
275 " <title>ISC BIND 9 Statistics</title>\n"
278 " <div class=\"header\">\n"
279 " <h1>ISC Bind 9 Configuration and Statistics</h1>\n"
281 " <p>Alternate statistics views: <a href=\"/\">All</a>,\n"
282 " <a href=\"/xml/v3/status\">Status</a>,\n"
283 " <a href=\"/xml/v3/server\">Server</a>,\n"
284 " <a href=\"/xml/v3/zones\">Zones</a>,\n"
285 " <a href=\"/xml/v3/net\">Network</a>,\n"
286 " <a href=\"/xml/v3/tasks\">Tasks</a> and\n"
287 " <a href=\"/xml/v3/mem\">Memory</a></p>\n"
289 " <h2>Server Status</h2>\n"
290 " <table class=\"info\">\n"
292 " <th>Boot time:</th>\n"
294 " <xsl:value-of select=\"server/boot-time\"/>\n"
298 " <th>Last reconfigured:</th>\n"
300 " <xsl:value-of select=\"server/config-time\"/>\n"
304 " <th>Current time:</th>\n"
306 " <xsl:value-of select=\"server/current-time\"/>\n"
311 " <xsl:if test=\"server/counters[@type="opcode"]/counter[. > 0]\">\n"
312 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
313 " <h2>Incoming Requests by DNS Opcode</h2>\n"
314 " <!-- Non Mozilla specific markup -->\n"
315 " <div class=\"pie\" id=\"chart_incoming_opcodes\">\n"
316 " [cannot display chart]\n"
319 " <table class=\"counters\">\n"
320 " <xsl:for-each select=\"server/counters[@type="opcode"]/counter[. > 0 or substring(@name,1,3) != 'RES']\">\n"
321 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
324 " <xsl:value-of select=\"@name\"/>\n"
327 " <xsl:value-of select=\".\"/>\n"
332 " <th class=\"totals\">Total:</th>\n"
333 " <td class=\"totals\">\n"
334 " <xsl:value-of select=\"sum(server/counters[@type="opcode"]/counter)\"/>\n"
340 " <xsl:if test=\"server/counters[@type="qtype"]/counter\">\n"
341 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
342 " <!-- Non Mozilla specific markup -->\n"
343 " <h3>Incoming Queries by Query Type</h3>\n"
344 " <div class=\"pie\" id=\"chart_incoming_qtypes\">\n"
345 " [cannot display chart]\n"
348 " <table class=\"counters\">\n"
349 " <xsl:for-each select=\"server/counters[@type="qtype"]/counter\">\n"
350 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
351 " <xsl:variable name=\"css-class\">\n"
353 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
354 " <xsl:otherwise>odd</xsl:otherwise>\n"
357 " <tr class=\"{$css-class}\">\n"
359 " <xsl:value-of select=\"@name\"/>\n"
362 " <xsl:value-of select=\".\"/>\n"
367 " <th class=\"totals\">Total:</th>\n"
368 " <td class=\"totals\">\n"
369 " <xsl:value-of select=\"sum(server/counters[@type="qtype"]/counter)\"/>\n"
375 " <xsl:if test=\"views/view[count(counters[@type="resqtype"]/counter) > 0]\">\n"
376 " <h2>Outgoing Queries per view</h2>\n"
377 " <xsl:for-each select=\"views/view[count(counters[@type="resqtype"]/counter) > 0]\">\n"
378 " <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
379 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
380 " <!-- Non Mozilla specific markup -->\n"
381 " <script type=\"text/javascript\">\n"
383 " 'title': \"Outgoing Queries for view: <xsl:value-of select=\"@name\"/>\",\n"
384 " 'target': 'chart_outgoing_queries_view_<xsl:value-of select=\"@name\"/>',\n"
385 " 'style': 'barchart',\n"
386 " 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type="resqtype"]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
389 " <xsl:variable name=\"target\">\n"
390 " <xsl:value-of select=\"@name\"/>\n"
392 " <div class=\"pie\" id=\"chart_outgoing_queries_view_{$target}\">[no data to display]</div>\n"
394 " <table class=\"counters\">\n"
395 " <xsl:for-each select=\"counters[@type="resqtype"]/counter\">\n"
396 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
397 " <xsl:variable name=\"css-class1\">\n"
399 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
400 " <xsl:otherwise>odd</xsl:otherwise>\n"
403 " <tr class=\"{$css-class1}\">\n"
405 " <xsl:value-of select=\"@name\"/>\n"
408 " <xsl:value-of select=\".\"/>\n"
416 " <xsl:if test=\"server/counters[@type="nsstat"]/counter[.>0]\">\n"
417 " <h2>Server Statistics</h2>\n"
418 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
419 " <!-- Non Mozilla specific markup -->\n"
420 " <script type=\"text/javascript\">\n"
422 " 'title' : \"Server Counters\",\n"
423 " 'target': 'chart_server_nsstat_restype',\n"
424 " 'style': 'barchart',\n"
425 " 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type="nsstat"]/counter[.>0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
428 " <div class=\"pie\" id=\"chart_server_nsstat_restype\">[no data to display]</div>\n"
430 " <table class=\"counters\">\n"
431 " <xsl:for-each select=\"server/counters[@type="nsstat"]/counter[.>0]\">\n"
432 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
433 " <xsl:variable name=\"css-class2\">\n"
435 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
436 " <xsl:otherwise>odd</xsl:otherwise>\n"
439 " <tr class=\"{$css-class2}\">\n"
441 " <xsl:value-of select=\"@name\"/>\n"
444 " <xsl:value-of select=\".\"/>\n"
451 " <xsl:if test=\"server/counters[@type="zonestat"]/counter[.>0]\">\n"
452 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
453 " <h2>Zone Maintenance Statistics</h2>\n"
454 " <script type=\"text/javascript\">\n"
456 " 'title' : \"Zone Maintenance Stats\",\n"
457 " 'target': 'chart_server_zone_maint',\n"
458 " 'style': 'barchart',\n"
459 " 'data': [['Type','Counter'],<xsl:for-each select=\"server/counters[@type="zonestat"]/counter[.>0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
462 " <!-- Non Mozilla specific markup -->\n"
463 " <div class=\"pie\" id=\"chart_server_zone_maint\">[no data to display]</div>\n"
465 " <table class=\"counters\">\n"
466 " <xsl:for-each select=\"server/counters[@type="zonestat"]/counter\">\n"
467 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
468 " <xsl:variable name=\"css-class3\">\n"
470 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
471 " <xsl:otherwise>odd</xsl:otherwise>\n"
474 " <tr class=\"{$css-class3}\">\n"
476 " <xsl:value-of select=\"@name\"/>\n"
479 " <xsl:value-of select=\".\"/>\n"
485 " <xsl:if test=\"server/counters[@type="resstat"]/counter[.>0]\">\n"
486 " <h2>Resolver Statistics (Common)</h2>\n"
487 " <table class=\"counters\">\n"
488 " <xsl:for-each select=\"server/counters[@type="resstat"]/counter\">\n"
489 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
490 " <xsl:variable name=\"css-class4\">\n"
492 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
493 " <xsl:otherwise>odd</xsl:otherwise>\n"
496 " <tr class=\"{$css-class4}\">\n"
498 " <xsl:value-of select=\"@name\"/>\n"
501 " <xsl:value-of select=\".\"/>\n"
507 " <xsl:for-each select=\"views/view\">\n"
508 " <xsl:if test=\"counters[@type="resstats"]/counter[.>0]\">\n"
509 " <h3>Resolver Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
510 " <table class=\"counters\">\n"
511 " <xsl:for-each select=\"counters[@type="resstats"]/counter[.>0]\">\n"
512 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
513 " <xsl:variable name=\"css-class5\">\n"
515 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
516 " <xsl:otherwise>odd</xsl:otherwise>\n"
519 " <tr class=\"{$css-class5}\">\n"
521 " <xsl:value-of select=\"@name\"/>\n"
524 " <xsl:value-of select=\".\"/>\n"
531 " <xsl:for-each select=\"views/view\">\n"
532 " <xsl:if test=\"counters[@type="adbstat"]/counter[.>0]\">\n"
533 " <h3>ADB Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
534 " <table class=\"counters\">\n"
535 " <xsl:for-each select=\"counters[@type="adbstat"]/counter[.>0]\">\n"
536 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
537 " <xsl:variable name=\"css-class5\">\n"
539 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
540 " <xsl:otherwise>odd</xsl:otherwise>\n"
543 " <tr class=\"{$css-class5}\">\n"
545 " <xsl:value-of select=\"@name\"/>\n"
548 " <xsl:value-of select=\".\"/>\n"
556 " <xsl:for-each select=\"views/view\">\n"
557 " <xsl:if test=\"counters[@type="cachestats"]/counter[.>0]\">\n"
558 " <h3>Cache Statistics for View <xsl:value-of select=\"@name\"/></h3>\n"
559 " <table class=\"counters\">\n"
560 " <xsl:for-each select=\"counters[@type="cachestats"]/counter[.>0]\">\n"
561 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
562 " <xsl:variable name=\"css-class5\">\n"
564 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
565 " <xsl:otherwise>odd</xsl:otherwise>\n"
568 " <tr class=\"{$css-class5}\">\n"
570 " <xsl:value-of select=\"@name\"/>\n"
573 " <xsl:value-of select=\".\"/>\n"
581 " <xsl:for-each select=\"views/view\">\n"
582 " <xsl:if test=\"cache/rrset\">\n"
583 " <h3>Cache DB RRsets for View <xsl:value-of select=\"@name\"/></h3>\n"
584 " <table class=\"counters\">\n"
585 " <xsl:for-each select=\"cache/rrset\">\n"
586 " <xsl:variable name=\"css-class6\">\n"
588 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
589 " <xsl:otherwise>odd</xsl:otherwise>\n"
592 " <tr class=\"{$css-class6}\">\n"
594 " <xsl:value-of select=\"name\"/>\n"
597 " <xsl:value-of select=\"counter\"/>\n"
606 " <xsl:if test=\"server/counters[@type="sockstat"]/counter[.>0]\">\n"
607 " <h2>Socket I/O Statistics</h2>\n"
608 " <table class=\"counters\">\n"
609 " <xsl:for-each select=\"server/counters[@type="sockstat"]/counter[.>0]\">\n"
610 " <xsl:variable name=\"css-class7\">\n"
612 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
613 " <xsl:otherwise>odd</xsl:otherwise>\n"
616 " <tr class=\"{$css-class7}\">\n"
618 " <xsl:value-of select=\"@name\"/>\n"
621 " <xsl:value-of select=\".\"/>\n"
628 " <xsl:if test=\"views/view[zones/zone/counters[@type="qtype"]/counter >0]\">\n"
629 " <h2>Received QTYPES per view/zone</h2>\n"
630 " <xsl:for-each select=\"views/view[zones/zone/counters[@type="qtype"]/counter >0]\">\n"
631 " <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
632 " <xsl:variable name=\"thisview\">\n"
633 " <xsl:value-of select=\"@name\"/>\n"
635 " <xsl:for-each select=\"zones/zone\">\n"
636 " <xsl:if test=\"counters[@type="qtype"]/counter[count(.) > 0]\">\n"
637 " <h4>Zone <xsl:value-of select=\"@name\"/></h4>\n"
638 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
639 " <!-- Non Mozilla specific markup -->\n"
640 " <script type=\"text/javascript\">\n"
642 " 'title': \"Query types for zone <xsl:value-of select=\"@name\"/>\",\n"
643 " 'target': 'chart_qtype_<xsl:value-of select=\"../../@name\"/>_<xsl:value-of select=\"@name\"/>',\n"
644 " 'style': 'barchart',\n"
645 " 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type="qtype"]/counter[.>0 and @name != "QryAuthAns"]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
649 " <xsl:variable name=\"target\">\n"
650 " <xsl:value-of select=\"@name\"/>\n"
652 " <div class=\"pie\" id=\"chart_qtype_{$thisview}_{$target}\">[no data to display]</div>\n"
654 " <table class=\"counters\">\n"
655 " <xsl:for-each select=\"counters[@type="qtype"]/counter\">\n"
656 " <xsl:sort select=\".\"/>\n"
657 " <xsl:variable name=\"css-class10\">\n"
659 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
660 " <xsl:otherwise>odd</xsl:otherwise>\n"
663 " <tr class=\"{$css-class10}\">\n"
665 " <xsl:value-of select=\"@name\"/>\n"
668 " <xsl:value-of select=\".\"/>\n"
677 " <xsl:if test=\"views/view[zones/zone/counters[@type="rcode"]/counter >0]\">\n"
678 " <h2>Response Codes per view/zone</h2>\n"
679 " <xsl:for-each select=\"views/view[zones/zone/counters[@type="rcode"]/counter >0]\">\n"
680 " <h3>View <xsl:value-of select=\"@name\"/></h3>\n"
681 " <xsl:variable name=\"thisview2\">\n"
682 " <xsl:value-of select=\"@name\"/>\n"
684 " <xsl:for-each select=\"zones/zone\">\n"
685 " <xsl:if test=\"counters[@type="rcode"]/counter[. > 0]\">\n"
686 " <h4>Zone <xsl:value-of select=\"@name\"/></h4>\n"
687 " <xsl:if test=\"system-property('xsl:vendor')!='Transformiix'\">\n"
688 " <!-- Non Mozilla specific markup -->\n"
689 " <script type=\"text/javascript\">\n"
691 " 'title': \"Response codes for zone <xsl:value-of select=\"@name\"/>\",\n"
692 " 'target': 'chart_rescode_<xsl:value-of select=\"../../@name\"/>_<xsl:value-of select=\"@name\"/>',\n"
693 " 'style': 'barchart',\n"
694 " 'data': [['Type','Counter'],<xsl:for-each select=\"counters[@type="rcode"]/counter[.>0 and @name != "QryAuthAns"]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
698 " <xsl:variable name=\"target\">\n"
699 " <xsl:value-of select=\"@name\"/>\n"
701 " <div class=\"pie\" id=\"chart_rescode_{$thisview2}_{$target}\">[no data to display]</div>\n"
703 " <table class=\"counters\">\n"
704 " <xsl:for-each select=\"counters[@type="rcode"]/counter[.>0 and @name != "QryAuthAns"]\">\n"
705 " <xsl:sort select=\".\"/>\n"
706 " <xsl:variable name=\"css-class11\">\n"
708 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
709 " <xsl:otherwise>odd</xsl:otherwise>\n"
712 " <tr class=\"{$css-class11}\">\n"
714 " <xsl:value-of select=\"@name\"/>\n"
717 " <xsl:value-of select=\".\"/>\n"
726 " <xsl:if test=\"socketmgr/sockets/socket\">\n"
727 " <h2>Network Status</h2>\n"
728 " <table class=\"netstat\">\n"
733 " <th>References</th>\n"
734 " <th>LocalAddress</th>\n"
735 " <th>PeerAddress</th>\n"
738 " <xsl:for-each select=\"socketmgr/sockets/socket\">\n"
739 " <xsl:sort select=\"id\"/>\n"
740 " <xsl:variable name=\"css-class12\">\n"
742 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
743 " <xsl:otherwise>odd</xsl:otherwise>\n"
746 " <tr class=\"{$css-class12}\">\n"
748 " <xsl:value-of select=\"id\"/>\n"
751 " <xsl:value-of select=\"name\"/>\n"
754 " <xsl:value-of select=\"type\"/>\n"
757 " <xsl:value-of select=\"references\"/>\n"
760 " <xsl:value-of select=\"local-address\"/>\n"
763 " <xsl:value-of select=\"peer-address\"/>\n"
766 " <xsl:for-each select=\"states\">\n"
767 " <xsl:value-of select=\".\"/>\n"
775 " <xsl:if test=\"taskmgr/thread-model/type\">\n"
776 " <h2>Task Manager Configuration</h2>\n"
777 " <table class=\"counters\">\n"
779 " <th class=\"even\">Thread-Model</th>\n"
781 " <xsl:value-of select=\"taskmgr/thread-model/type\"/>\n"
784 " <tr class=\"odd\">\n"
785 " <th>Worker Threads</th>\n"
787 " <xsl:value-of select=\"taskmgr/thread-model/worker-threads\"/>\n"
790 " <tr class=\"even\">\n"
791 " <th>Default Quantum</th>\n"
793 " <xsl:value-of select=\"taskmgr/thread-model/default-quantum\"/>\n"
796 " <tr class=\"odd\">\n"
797 " <th>Tasks Running</th>\n"
799 " <xsl:value-of select=\"taskmgr/thread-model/tasks-running\"/>\n"
802 " <tr class=\"even\">\n"
803 " <th>Tasks Ready</th>\n"
805 " <xsl:value-of select=\"taskmgr/thread-model/tasks-ready\"/>\n"
811 " <xsl:if test=\"taskmgr/tasks/task\">\n"
813 " <table class=\"tasks\">\n"
817 " <th>References</th>\n"
819 " <th>Quantum</th>\n"
822 " <xsl:for-each select=\"taskmgr/tasks/task\">\n"
823 " <xsl:sort select=\"name\"/>\n"
824 " <xsl:variable name=\"css-class14\">\n"
826 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
827 " <xsl:otherwise>odd</xsl:otherwise>\n"
830 " <tr class=\"{$css-class14}\">\n"
832 " <xsl:value-of select=\"id\"/>\n"
835 " <xsl:value-of select=\"name\"/>\n"
838 " <xsl:value-of select=\"references\"/>\n"
841 " <xsl:value-of select=\"state\"/>\n"
844 " <xsl:value-of select=\"quantum\"/>\n"
847 " <xsl:value-of select=\"events\"/>\n"
854 " <xsl:if test=\"memory/summary\">\n"
855 " <h2>Memory Usage Summary</h2>\n"
856 " <table class=\"counters\">\n"
857 " <xsl:for-each select=\"memory/summary/*\">\n"
858 " <xsl:variable name=\"css-class13\">\n"
860 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
861 " <xsl:otherwise>odd</xsl:otherwise>\n"
864 " <tr class=\"{$css-class13}\">\n"
866 " <xsl:value-of select=\"name()\"/>\n"
869 " <xsl:value-of select=\".\"/>\n"
876 " <xsl:if test=\"memory/contexts/context\">\n"
877 " <h2>Memory Contexts</h2>\n"
878 " <table class=\"mctx\">\n"
882 " <th>References</th>\n"
883 " <th>TotalUse</th>\n"
886 " <th>BlockSize</th>\n"
888 " <th>HiWater</th>\n"
889 " <th>LoWater</th>\n"
891 " <xsl:for-each select=\"memory/contexts/context\">\n"
892 " <xsl:sort select=\"total\" data-type=\"number\" order=\"descending\"/>\n"
893 " <xsl:variable name=\"css-class14\">\n"
895 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
896 " <xsl:otherwise>odd</xsl:otherwise>\n"
899 " <tr class=\"{$css-class14}\">\n"
901 " <xsl:value-of select=\"id\"/>\n"
904 " <xsl:value-of select=\"name\"/>\n"
907 " <xsl:value-of select=\"references\"/>\n"
910 " <xsl:value-of select=\"total\"/>\n"
913 " <xsl:value-of select=\"inuse\"/>\n"
916 " <xsl:value-of select=\"maxinuse\"/>\n"
919 " <xsl:value-of select=\"blocksize\"/>\n"
922 " <xsl:value-of select=\"pools\"/>\n"
925 " <xsl:value-of select=\"hiwater\"/>\n"
928 " <xsl:value-of select=\"lowater\"/>\n"
935 " <p class=\"footer\">Internet Systems Consortium Inc.<br/><a href=\"http://www.isc.org\">http://www.isc.org</a></p>\n"
939 "</xsl:stylesheet>\n";