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 %
6 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
8 " - Copyright (C) 2012-2014 Internet Systems Consortium, Inc. (\"ISC\")\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"
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"
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="3.3"]\">\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"
36 " google.load(\"visualization\", \"1\", {packages:[\"corechart\"]});\n"
37 " google.setOnLoadCallback(loadGraphs);\n"
41 " function drawChart(chart_title,target,style,data) {\n"
42 " var data = google.visualization.arrayToDataTable(data);\n"
45 " title: chart_title\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"
58 " function loadGraphs(){\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"
69 " // Server Incoming Query Types \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="qtype"]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
77 " // Server Incoming Requests by opcode\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="opcode"]/counter[. > 0 or substring(@name,1,3) != 'RES']\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]});\n"
85 " <style type=\"text/css\">\n"
87 " font-family: sans-serif;\n"
88 " background-color: #ffffff;\n"
94 " background-color: #f0f0f0;\n"
98 " background-color: #ffffff;\n"
102 " font-style:italic;\n"
107 " border-collapse: collapse;\n"
108 " border: 1px solid grey;\n"
112 " border: 1px solid grey;\n"
115 " table.counters th {\n"
116 " text-align: right;\n"
117 " border: 1px solid grey;\n"
120 " table.counters td {\n"
121 " text-align: right;\n"
122 " font-family: monospace;\n"
124 " table.counters tr:hover{\n"
125 " background-color: #99ddff;\n"
129 " border: 1px solid grey;\n"
133 " text-align: center;\n"
134 " border: 1px solid grey;\n"
138 " text-align: center;\n"
140 " table.info tr:hover{\n"
141 " background-color: #99ddff;\n"
145 " border: 1px solid grey;\n"
148 " table.tasks th {\n"
149 " text-align: center;\n"
150 " border: 1px solid grey;\n"
153 " table.tasks td {\n"
154 " text-align: right;\n"
155 " font-family: monospace;\n"
157 " table.tasks td:nth-child(2) {\n"
158 " text-align: center;\n"
160 " table.tasks td:nth-child(4) {\n"
161 " text-align: center;\n"
163 " table.tasks tr:hover{\n"
164 " background-color: #99ddff;\n"
168 " border: 1px solid grey;\n"
171 " table.netstat th {\n"
172 " text-align: center;\n"
173 " border: 1px solid grey;\n"
176 " table.netstat td {\n"
177 " text-align: center;\n"
179 " table.netstat td:nth-child(4) {\n"
180 " text-align: right;\n"
181 " font-family: monospace;\n"
183 " table.netstat td:nth-child(7) {\n"
184 " text-align: left;\n"
186 " table.netstat tr:hover{\n"
187 " background-color: #99ddff;\n"
191 " border: 1px solid grey;\n"
195 " text-align: center;\n"
196 " border: 1px solid grey;\n"
199 " text-align: right;\n"
200 " font-family: monospace;\n"
202 " table.mctx td:nth-child(-n+2) {\n"
203 " text-align: left;\n"
206 " table.mctx tr:hover{\n"
207 " background-color: #99ddff;\n"
211 " background-color: rgb(1,169,206);\n"
216 " padding-right: 5px;\n"
217 " padding-left: 5px;\n"
218 " border: 1px solid grey;\n"
222 " color: rgb(1,169,206);\n"
227 " background-color: #ffffff;\n"
234 " text-align: right;\n"
239 " font-weight: bold;\n"
245 " font-size: 14pt;\n"
247 " text-align:center;\n"
252 " font-size: 12pt;\n"
254 " text-align:center;\n"
257 " color: rgb(1,169,206);\n"
258 " font-size: 10pt;\n"
260 " text-align:center;\n"
269 " <title>ISC BIND 9 Statistics</title>\n"
272 " <div class=\"header\">\n"
273 " <h1>ISC Bind 9 Configuration and Statistics</h1>\n"
276 " <h2>Server Times</h2>\n"
277 " <table class=\"info\">\n"
279 " <th>Boot time:</th>\n"
281 " <xsl:value-of select=\"server/boot-time\"/>\n"
285 " <th>Current time:</th>\n"
287 " <xsl:value-of select=\"server/current-time\"/>\n"
292 " <xsl:if test=\"server/counters[@type="opcode"]/counter[. > 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"
300 " <table class=\"counters\">\n"
301 " <xsl:for-each select=\"server/counters[@type="opcode"]/counter[. > 0 or substring(@name,1,3) != 'RES']\">\n"
302 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
305 " <xsl:value-of select=\"@name\"/>\n"
308 " <xsl:value-of select=\".\"/>\n"
313 " <th class=\"totals\">Total:</th>\n"
314 " <td class=\"totals\">\n"
315 " <xsl:value-of select=\"sum(server/counters[@type="opcode"]/counter)\"/>\n"
321 " <xsl:if test=\"server/counters[@type="qtype"]/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"
329 " <table class=\"counters\">\n"
330 " <xsl:for-each select=\"server/counters[@type="qtype"]/counter\">\n"
331 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
332 " <xsl:variable name=\"css-class\">\n"
334 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
335 " <xsl:otherwise>odd</xsl:otherwise>\n"
338 " <tr class=\"{$css-class}\">\n"
340 " <xsl:value-of select=\"@name\"/>\n"
343 " <xsl:value-of select=\".\"/>\n"
348 " <th class=\"totals\">Total:</th>\n"
349 " <td class=\"totals\">\n"
350 " <xsl:value-of select=\"sum(server/counters[@type="qtype"]/counter)\"/>\n"
356 " <xsl:if test=\"views/view[count(counters[@type="resqtype"]/counter) > 0]\">\n"
357 " <h2>Outgoing Queries per view</h2>\n"
358 " <xsl:for-each select=\"views/view[count(counters[@type="resqtype"]/counter) > 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"
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="resqtype"]/counter\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
370 " <xsl:variable name=\"target\">\n"
371 " <xsl:value-of select=\"@name\"/>\n"
373 " <div class=\"pie\" id=\"chart_outgoing_queries_view_{$target}\">[no data to display]</div>\n"
375 " <table class=\"counters\">\n"
376 " <xsl:for-each select=\"counters[@type="resqtype"]/counter\">\n"
377 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
378 " <xsl:variable name=\"css-class1\">\n"
380 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
381 " <xsl:otherwise>odd</xsl:otherwise>\n"
384 " <tr class=\"{$css-class1}\">\n"
386 " <xsl:value-of select=\"@name\"/>\n"
389 " <xsl:value-of select=\".\"/>\n"
397 " <xsl:if test=\"server/counters[@type="nsstat"]/counter[.>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"
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="nsstat"]/counter[.>0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
409 " <div class=\"pie\" id=\"chart_server_nsstat_restype\">[no data to display]</div>\n"
411 " <table class=\"counters\">\n"
412 " <xsl:for-each select=\"server/counters[@type="nsstat"]/counter[.>0]\">\n"
413 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
414 " <xsl:variable name=\"css-class2\">\n"
416 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
417 " <xsl:otherwise>odd</xsl:otherwise>\n"
420 " <tr class=\"{$css-class2}\">\n"
422 " <xsl:value-of select=\"@name\"/>\n"
425 " <xsl:value-of select=\".\"/>\n"
432 " <xsl:if test=\"server/counters[@type="zonestat"]/counter[.>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"
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="zonestat"]/counter[.>0]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
443 " <!-- Non Mozilla specific markup -->\n"
444 " <div class=\"pie\" id=\"chart_server_zone_maint\">[no data to display]</div>\n"
446 " <table class=\"counters\">\n"
447 " <xsl:for-each select=\"server/counters[@type="zonestat"]/counter\">\n"
448 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
449 " <xsl:variable name=\"css-class3\">\n"
451 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
452 " <xsl:otherwise>odd</xsl:otherwise>\n"
455 " <tr class=\"{$css-class3}\">\n"
457 " <xsl:value-of select=\"@name\"/>\n"
460 " <xsl:value-of select=\".\"/>\n"
466 " <xsl:if test=\"server/counters[@type="resstat"]/counter[.>0]\">\n"
467 " <h2>Resolver Statistics (Common)</h2>\n"
468 " <table class=\"counters\">\n"
469 " <xsl:for-each select=\"server/counters[@type="resstat"]/counter\">\n"
470 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
471 " <xsl:variable name=\"css-class4\">\n"
473 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
474 " <xsl:otherwise>odd</xsl:otherwise>\n"
477 " <tr class=\"{$css-class4}\">\n"
479 " <xsl:value-of select=\"@name\"/>\n"
482 " <xsl:value-of select=\".\"/>\n"
488 " <xsl:for-each select=\"views/view\">\n"
489 " <xsl:if test=\"counters[@type="resstats"]/counter[.>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="resstats"]/counter[.>0]\">\n"
493 " <xsl:sort select=\".\" data-type=\"number\" order=\"descending\"/>\n"
494 " <xsl:variable name=\"css-class5\">\n"
496 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
497 " <xsl:otherwise>odd</xsl:otherwise>\n"
500 " <tr class=\"{$css-class5}\">\n"
502 " <xsl:value-of select=\"@name\"/>\n"
505 " <xsl:value-of select=\".\"/>\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"
520 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
521 " <xsl:otherwise>odd</xsl:otherwise>\n"
524 " <tr class=\"{$css-class6}\">\n"
526 " <xsl:value-of select=\"name\"/>\n"
529 " <xsl:value-of select=\"counter\"/>\n"
538 " <xsl:if test=\"server/counters[@type="sockstat"]/counter[.>0]\">\n"
539 " <h2>Socket I/O Statistics</h2>\n"
540 " <table class=\"counters\">\n"
541 " <xsl:for-each select=\"server/counters[@type="sockstat"]/counter[.>0]\">\n"
542 " <xsl:variable name=\"css-class7\">\n"
544 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
545 " <xsl:otherwise>odd</xsl:otherwise>\n"
548 " <tr class=\"{$css-class7}\">\n"
550 " <xsl:value-of select=\"@name\"/>\n"
553 " <xsl:value-of select=\".\"/>\n"
560 " <xsl:if test=\"views/view[zones/zone/counters[@type="rcode"]/counter >0]\">\n"
561 " <h2>Response Codes per view/zone</h2>\n"
562 " <xsl:for-each select=\"views/view[zones/zone/counters[@type="rcode"]/counter >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"
567 " <xsl:for-each select=\"zones/zone\">\n"
568 " <xsl:if test=\"counters[@type="rcode"]/counter[. > 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"
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="rcode"]/counter[.>0 and @name != "QryAuthAns"]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
581 " <xsl:variable name=\"target\">\n"
582 " <xsl:value-of select=\"@name\"/>\n"
584 " <div class=\"pie\" id=\"chart_rescode_{$thisview}_{$target}\">[no data to display]</div>\n"
586 " <table class=\"counters\">\n"
587 " <xsl:for-each select=\"counters[@type="rcode"]/counter[.>0 and @name != "QryAuthAns"]\">\n"
588 " <xsl:sort select=\".\"/>\n"
589 " <xsl:variable name=\"css-class10\">\n"
591 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
592 " <xsl:otherwise>odd</xsl:otherwise>\n"
595 " <tr class=\"{$css-class10}\">\n"
597 " <xsl:value-of select=\"@name\"/>\n"
600 " <xsl:value-of select=\".\"/>\n"
609 " <xsl:if test=\"views/view[zones/zone/counters[@type="qtype"]/counter >0]\">\n"
610 " <h2>Received QTYPES per view/zone</h2>\n"
611 " <xsl:for-each select=\"views/view[zones/zone/counters[@type="qtype"]/counter >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"
616 " <xsl:for-each select=\"zones/zone\">\n"
617 " <xsl:if test=\"counters[@type="qtype"]/counter[count(.) > 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"
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="qtype"]/counter[.>0 and @name != "QryAuthAns"]\">['<xsl:value-of select=\"@name\"/>',<xsl:value-of select=\".\"/>],</xsl:for-each>]\n"
630 " <xsl:variable name=\"target\">\n"
631 " <xsl:value-of select=\"@name\"/>\n"
633 " <div class=\"pie\" id=\"chart_qtype_{$thisview2}_{$target}\">[no data to display]</div>\n"
635 " <table class=\"counters\">\n"
636 " <xsl:for-each select=\"counters[@type="qtype"]/counter\">\n"
637 " <xsl:sort select=\".\"/>\n"
638 " <xsl:variable name=\"css-class11\">\n"
640 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
641 " <xsl:otherwise>odd</xsl:otherwise>\n"
644 " <tr class=\"{$css-class11}\">\n"
646 " <xsl:value-of select=\"@name\"/>\n"
649 " <xsl:value-of select=\".\"/>\n"
658 " <xsl:if test=\"socketmgr/sockets/socket\">\n"
659 " <h2>Network Status</h2>\n"
660 " <table class=\"netstat\">\n"
665 " <th>References</th>\n"
666 " <th>LocalAddress</th>\n"
667 " <th>PeerAddress</th>\n"
670 " <xsl:for-each select=\"socketmgr/sockets/socket\">\n"
671 " <xsl:sort select=\"id\"/>\n"
672 " <xsl:variable name=\"css-class12\">\n"
674 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
675 " <xsl:otherwise>odd</xsl:otherwise>\n"
678 " <tr class=\"{$css-class12}\">\n"
680 " <xsl:value-of select=\"id\"/>\n"
683 " <xsl:value-of select=\"name\"/>\n"
686 " <xsl:value-of select=\"type\"/>\n"
689 " <xsl:value-of select=\"references\"/>\n"
692 " <xsl:value-of select=\"local-address\"/>\n"
695 " <xsl:value-of select=\"peer-address\"/>\n"
698 " <xsl:for-each select=\"states\">\n"
699 " <xsl:value-of select=\".\"/>\n"
707 " <xsl:if test=\"taskmgr/thread-model/type\">\n"
708 " <h2>Task Manager Configuration</h2>\n"
709 " <table class=\"counters\">\n"
711 " <th class=\"even\">Thread-Model</th>\n"
713 " <xsl:value-of select=\"taskmgr/thread-model/type\"/>\n"
716 " <tr class=\"odd\">\n"
717 " <th>Worker Threads</th>\n"
719 " <xsl:value-of select=\"taskmgr/thread-model/worker-threads\"/>\n"
722 " <tr class=\"even\">\n"
723 " <th>Default Quantum</th>\n"
725 " <xsl:value-of select=\"taskmgr/thread-model/default-quantum\"/>\n"
728 " <tr class=\"odd\">\n"
729 " <th>Tasks Running</th>\n"
731 " <xsl:value-of select=\"taskmgr/thread-model/tasks-running\"/>\n"
737 " <xsl:if test=\"taskmgr/tasks/task\">\n"
739 " <table class=\"tasks\">\n"
743 " <th>References</th>\n"
745 " <th>Quantum</th>\n"
747 " <xsl:for-each select=\"taskmgr/tasks/task\">\n"
748 " <xsl:sort select=\"name\"/>\n"
749 " <xsl:variable name=\"css-class14\">\n"
751 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
752 " <xsl:otherwise>odd</xsl:otherwise>\n"
755 " <tr class=\"{$css-class14}\">\n"
757 " <xsl:value-of select=\"id\"/>\n"
760 " <xsl:value-of select=\"name\"/>\n"
763 " <xsl:value-of select=\"references\"/>\n"
766 " <xsl:value-of select=\"state\"/>\n"
769 " <xsl:value-of select=\"quantum\"/>\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"
782 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
783 " <xsl:otherwise>odd</xsl:otherwise>\n"
786 " <tr class=\"{$css-class13}\">\n"
788 " <xsl:value-of select=\"name()\"/>\n"
791 " <xsl:value-of select=\".\"/>\n"
798 " <xsl:if test=\"memory/contexts/context\">\n"
799 " <h2>Memory Contexts</h2>\n"
800 " <table class=\"mctx\">\n"
804 " <th>References</th>\n"
805 " <th>TotalUse</th>\n"
808 " <th>BlockSize</th>\n"
810 " <th>HiWater</th>\n"
811 " <th>LoWater</th>\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"
817 " <xsl:when test=\"position() mod 2 = 0\">even</xsl:when>\n"
818 " <xsl:otherwise>odd</xsl:otherwise>\n"
821 " <tr class=\"{$css-class14}\">\n"
823 " <xsl:value-of select=\"id\"/>\n"
826 " <xsl:value-of select=\"name\"/>\n"
829 " <xsl:value-of select=\"references\"/>\n"
832 " <xsl:value-of select=\"total\"/>\n"
835 " <xsl:value-of select=\"inuse\"/>\n"
838 " <xsl:value-of select=\"maxinuse\"/>\n"
841 " <xsl:value-of select=\"blocksize\"/>\n"
844 " <xsl:value-of select=\"pools\"/>\n"
847 " <xsl:value-of select=\"hiwater\"/>\n"
850 " <xsl:value-of select=\"lowater\"/>\n"
857 " <p class=\"footer\">Internet Systems Consortium Inc.<br/><a href=\"http://www.isc.org\">http://www.isc.org</a></p>\n"
861 "</xsl:stylesheet>\n";