Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
2770 rexy 1
<?xml version="1.0" encoding="UTF-8"?>
2
    <!--  $Id: phpsysinfo.xslt 699 2012-09-15 11:57:13Z namiltd $ -->
3
<xsl:stylesheet version="1.0"
4
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fn="http://www.w3.org/2005/xpath-functions"
5
    xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema"
6
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
7
    <xsl:output version="4.0" method="html" indent="no"
8
        encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"
9
        doctype-system="http://www.w3.org/TR/html4/loose.dtd" />
10
    <xsl:param name="SV_OutputFormat" select="'HTML'" />
11
    <xsl:variable name="XML" select="/" />
12
    <xsl:template match="/">
13
        <html>
14
            <head>
15
                <title>
16
                    <xsl:text>phpSysInfo</xsl:text>
17
                </title>
18
                <style type="text/css">
19
                    <xsl:comment>
20
                        @import url("templates/phpsysinfo.css");
21
                    </xsl:comment>
22
                </style>
23
                <link href="gfx/favicon.gif" rel="shortcut icon" />
24
            </head>
25
            <body>
26
                <xsl:for-each select="$XML">
27
                    <xsl:for-each select="*">
28
                        <div>
29
                            <xsl:for-each select="Vitals">
30
                                <h1 id="title" style="_color: #000; /* ie6 fix */">
31
                                    <span>
32
                                        <xsl:text>System information : </xsl:text>
33
                                    </span>
34
                                    <xsl:value-of select="@Hostname" />
35
                                    <span>
36
                                        <xsl:text> (</xsl:text>
37
                                    </span>
38
                                    <xsl:value-of select="@IPAddr" />
39
                                    <span>
40
                                        <xsl:text>)</xsl:text>
41
                                    </span>
42
                                </h1>
43
                            </xsl:for-each>
44
                            <div id="vitals">
45
                                <xsl:for-each select="Vitals">
46
                                    <h2>
47
                                        <span>
48
                                            <xsl:text>System Vital</xsl:text>
49
                                        </span>
50
                                    </h2>
51
                                    <div style="overflow-x:auto;">
52
                                        <table border="0" style="border-spacing:0;"
53
                                            class="stripMe" id="vitalsTable"
54
                                            width="100%">
55
                                            <tbody>
56
                                                <tr>
57
                                                    <td style="width:160px;">
58
                                                        <span>
59
                                                            <xsl:text>Canonical Hostname</xsl:text>
60
                                                        </span>
61
                                                    </td>
62
                                                    <td>
63
                                                        <xsl:value-of
64
                                                            select="@Hostname" />
65
                                                    </td>
66
                                                </tr>
67
                                                <tr class="odd">
68
                                                    <td style="width:160px;">
69
                                                        <span>
70
                                                            <xsl:text>Listening IP</xsl:text>
71
                                                        </span>
72
                                                    </td>
73
                                                    <td>
74
                                                        <xsl:value-of
75
                                                            select="@IPAddr" />
76
                                                    </td>
77
                                                </tr>
78
                                                <tr>
79
                                                    <td style="width:160px;">
80
                                                        <span>
81
                                                            <xsl:text>Kernel Version</xsl:text>
82
                                                        </span>
83
                                                    </td>
84
                                                    <td>
85
                                                        <xsl:value-of
86
                                                            select="@Kernel" />
87
                                                    </td>
88
                                                </tr>
89
                                                <tr class="odd">
90
                                                    <td style="width:160px;">
91
                                                        <span>
92
                                                            <xsl:text>Distro Name</xsl:text>
93
                                                        </span>
94
                                                    </td>
95
                                                    <td>
96
                                                        <img
97
                                                            style="height:16px; width:16px;">
98
                                                            <xsl:attribute
99
                                                                name="src">
100
                                                                <xsl:if
101
                                                                test="substring(string(concat(&apos;gfx/images/&apos;,@Distroicon)), 2, 1) = ':'">
102
                                                                    <xsl:text>file:///</xsl:text>
103
                                                                </xsl:if>
104
                                                                <xsl:value-of
105
                                                                select="translate(string(concat(&apos;gfx/images/&apos;,@Distroicon)), '&#x5c;', '/')" />
106
                                                            </xsl:attribute>
107
                                                            <xsl:attribute
108
                                                                name="alt" />
109
                                                        </img>
110
                                                        <span>
111
                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
112
                                                        </span>
113
                                                        <span>
114
                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
115
                                                        </span>
116
                                                        <xsl:value-of
117
                                                            select="@Distro" />
118
                                                    </td>
119
                                                </tr>
120
                                                <tr class="odd">
121
                                                    <td style="width:160px;">
122
                                                        <span>
123
                                                            <xsl:text>OS Type</xsl:text>
124
                                                        </span>
125
                                                    </td>
126
                                                    <td>
127
                                                        <img
128
                                                            style="height:16px; width:16px;">
129
                                                            <xsl:attribute
130
                                                                name="src">
131
                                                                <xsl:if
132
                                                                test="substring(string(concat(&apos;gfx/images/&apos;,@OS,&apos;.png&apos;)), 2, 1) = ':'">
133
                                                                    <xsl:text>file:///</xsl:text>
134
                                                                </xsl:if>
135
                                                                <xsl:value-of
136
                                                                select="translate(string(concat(&apos;gfx/images/&apos;,@OS,&apos;.png&apos;)), '&#x5c;', '/')" />
137
                                                            </xsl:attribute>
138
                                                            <xsl:attribute
139
                                                                name="alt" />
140
                                                        </img>
141
                                                        <span>
142
                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
143
                                                        </span>
144
                                                        <span>
145
                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
146
                                                        </span>
147
                                                        <xsl:value-of
148
                                                            select="@OS" />
149
                                                    </td>
150
                                                </tr>
151
                                                <tr>
152
                                                    <td style="width:160px;">
153
                                                        <span>
154
                                                            <xsl:text>Uptime</xsl:text>
155
                                                        </span>
156
                                                    </td>
157
                                                    <td>
158
                                                        <span>
159
                                                            <xsl:value-of
160
                                                                select="floor( @Uptime div 60 div 60 div 24)" />
161
                                                        </span>
162
                                                        <span>
163
                                                            <xsl:text> Days </xsl:text>
164
                                                        </span>
165
                                                        <span>
166
                                                            <xsl:value-of
167
                                                                select="floor( ( @Uptime div 60 div 60) - ( floor( @Uptime div 60 div 60 div 24) * 24) )" />
168
                                                        </span>
169
                                                        <span>
170
                                                            <xsl:text> Hours </xsl:text>
171
                                                        </span>
172
                                                        <span>
173
                                                            <xsl:value-of
174
                                                                select="floor( @Uptime div 60 - ( floor( @Uptime div 60 div 60 div 24) * 60 * 24) - ( floor( ( @Uptime div 60 div 60) - ( floor( @Uptime div 60 div 60 div 24) * 24) ) * 60) )" />
175
                                                        </span>
176
                                                        <span>
177
                                                            <xsl:text> Minutes</xsl:text>
178
                                                        </span>
179
                                                    </td>
180
                                                </tr>
181
                                                <tr class="odd">
182
                                                    <td style="width:160px;">
183
                                                        <span>
184
                                                             <xsl:text>Current Users</xsl:text>
185
                                                        </span>
186
                                                    </td>
187
                                                    <td>
188
                                                        <xsl:value-of
189
                                                            select="@Users" />
190
                                                    </td>
191
                                                </tr>
192
                                                <tr>
193
                                                    <td style="width:160px;">
194
                                                        <span>
195
                                                            <xsl:text>Load Averages</xsl:text>
196
                                                        </span>
197
                                                    </td>
198
                                                    <td>
199
                                                        <xsl:value-of
200
                                                            select="@LoadAvg" />
201
                                                        <xsl:if
202
                                                            test="count(@CPULoad )&gt;0">
203
                                                            <xsl:text disable-output-escaping="yes">&lt;br/&gt;</xsl:text>
204
                                                            <div
205
                                                                style="float:left; width:{concat(  CPULoad  , &apos;px&apos; )}; "
206
                                                                class="bar">
207
                                                                <span>
208
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
209
                                                                </span>
210
                                                            </div>
211
                                                            <div
212
                                                                style="float:left; ">
213
                                                                <span>
214
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
215
                                                                </span>
216
                                                                <xsl:value-of
217
                                                                    select="round(@CPULoad)" />
218
                                                                <span>
219
                                                                    <xsl:text>%</xsl:text>
220
                                                                </span>
221
                                                            </div>
222
                                                        </xsl:if>
223
                                                    </td>
224
                                                </tr>
225
                                                <xsl:if
226
                                                    test="count(@SysLang )&gt;0">
227
                                                    <tr class="odd">
228
                                                        <td style="width:160px;">
229
                                                            <span>
230
                                                                <xsl:text>System Language</xsl:text>
231
                                                            </span>
232
                                                        </td>
233
                                                        <td>
234
                                                            <xsl:value-of
235
                                                                select="@SysLang" />
236
                                                        </td>
237
                                                    </tr>
238
                                                </xsl:if>
239
                                                <xsl:if
240
                                                    test="count(@CodePage )&gt;0">
241
                                                    <tr class="odd">
242
                                                        <td style="width:160px;">
243
                                                            <span>
244
                                                                <xsl:text>Code Page</xsl:text>
245
                                                            </span>
246
                                                        </td>
247
                                                        <td>
248
                                                            <xsl:value-of
249
                                                                select="@CodePage" />
250
                                                        </td>
251
                                                    </tr>
252
                                                </xsl:if>
253
                                                <xsl:if
254
                                                    test="count(@Processes )&gt;0">
255
                                                    <tr class="odd">
256
                                                        <td style="width:160px;">
257
                                                            <span>
258
                                                                <xsl:text>Processes</xsl:text>
259
                                                            </span>
260
                                                        </td>
261
                                                        <td>
262
                                                            <xsl:value-of
263
                                                                select="@Processes" />
264
                                                        </td>
265
                                                    </tr>
266
                                                </xsl:if>
267
                                            </tbody>
268
                                        </table>
269
                                    </div>
270
                                </xsl:for-each>
271
                            </div>
272
                            <div id="hardware">
273
                                <xsl:for-each select="Hardware">
274
                                    <h2>
275
                                        <span>
276
                                            <xsl:text>Hardware Information</xsl:text>
277
                                        </span>
278
                                    </h2>
279
                                    <div style="overflow-x:auto;">
280
                                        <xsl:if
281
                                            test="count(@Name )&gt;0">
282
                                            <table border="0" style="border-spacing:0;"
283
                                                width="100%">
284
                                                <tbody>
285
                                                    <tr class="odd">
286
                                                        <td style="width:160px;">
287
                                                            <span>
288
                                                                <xsl:text>Machine</xsl:text>
289
                                                            </span>
290
                                                        </td>
291
                                                        <td>
292
                                                            <xsl:value-of
293
                                                                select="@Name" />
294
                                                        </td>
295
                                                    </tr>
296
                                                </tbody>
297
                                            </table>
298
                                        </xsl:if>
299
                                        <xsl:for-each select="CPU">
300
                                            <table border="0" style="border-spacing:0;"
301
                                                width="100%">
302
                                                <tbody>
303
                                                    <tr class="odd">
304
                                                        <td style="width:160px;">
305
                                                            <span>
306
                                                                <xsl:text>Processors</xsl:text>
307
                                                            </span>
308
                                                        </td>
309
                                                        <td>
310
                                                            <xsl:value-of
311
                                                                select="count(CpuCore)" />
312
                                                        </td>
313
                                                    </tr>
314
                                                    <xsl:for-each
315
                                                        select="CpuCore">
316
                                                        <xsl:if
317
                                                            test="count(@Model )&gt;0">
318
                                                            <tr class="odd">
319
                                                                <td
320
                                                                    style="width:160px;">
321
                                                                    <span>
322
                                                                        <xsl:text>Model</xsl:text>
323
                                                                    </span>
324
                                                                </td>
325
                                                                <td>
326
                                                                    <xsl:value-of
327
                                                                        select="@Model" />
328
                                                                </td>
329
                                                            </tr>
330
                                                        </xsl:if>
331
                                                        <xsl:if
332
                                                            test="count(@CpuSpeed )&gt;0">
333
                                                            <tr>
334
                                                                <td
335
                                                                    style="width:160px;">
336
                                                                    <span>
337
                                                                        <xsl:text>CPU Speed</xsl:text>
338
                                                                    </span>
339
                                                                </td>
340
                                                                <td>
341
                                                                    <xsl:value-of
342
                                                                        select="@CpuSpeed" />
343
                                                                    <span>
344
                                                                        <xsl:text> MHz</xsl:text>
345
                                                                    </span>
346
                                                                </td>
347
                                                            </tr>
348
                                                        </xsl:if>
349
                                                        <xsl:if
350
                                                            test="count(@CpuSpeedMax )&gt;0">
351
                                                            <tr>
352
                                                                <td
353
                                                                    style="width:160px;">
354
                                                                    <span>
355
                                                                        <xsl:text>CPU Speed Max</xsl:text>
356
                                                                    </span>
357
                                                                </td>
358
                                                                <td>
359
                                                                    <xsl:value-of
360
                                                                        select="@CpuSpeedMax" />
361
                                                                    <span>
362
                                                                        <xsl:text> MHz</xsl:text>
363
                                                                    </span>
364
                                                                </td>
365
                                                            </tr>
366
                                                        </xsl:if>
367
                                                        <xsl:if
368
                                                            test="count(@CpuSpeedMin )&gt;0">
369
                                                            <tr>
370
                                                                <td
371
                                                                    style="width:160px;">
372
                                                                    <span>
373
                                                                        <xsl:text>CPU Speed Min</xsl:text>
374
                                                                    </span>
375
                                                                </td>
376
                                                                <td>
377
                                                                    <xsl:value-of
378
                                                                        select="@CpuSpeedMin" />
379
                                                                    <span>
380
                                                                        <xsl:text> MHz</xsl:text>
381
                                                                    </span>
382
                                                                </td>
383
                                                            </tr>
384
                                                        </xsl:if>
385
                                                        <xsl:if
386
                                                            test="count(@Cache )&gt;0">
387
                                                            <tr>
388
                                                                <td
389
                                                                    style="width:160px;">
390
                                                                    <span>
391
                                                                        <xsl:text>Cache Size</xsl:text>
392
                                                                    </span>
393
                                                                </td>
394
                                                                <td>
395
                                                                    <xsl:value-of
396
                                                                        select="round(@Cache div 1024)" />
397
                                                                    <span>
398
                                                                        <xsl:text> KiB</xsl:text>
399
                                                                    </span>
400
                                                                </td>
401
                                                            </tr>
402
                                                        </xsl:if>
403
                                                        <xsl:if
404
                                                            test="count(@Virt )&gt;0">
405
                                                            <tr class="odd">
406
                                                                <td
407
                                                                    style="width:160px;">
408
                                                                    <span>
409
                                                                        <xsl:text>Virtualization</xsl:text>
410
                                                                    </span>
411
                                                                </td>
412
                                                                <td>
413
                                                                    <xsl:value-of
414
                                                                        select="@Virt" />
415
                                                                </td>
416
                                                            </tr>
417
                                                        </xsl:if>
418
                                                        <xsl:if
419
                                                            test="count(@BusSpeed )&gt;0">
420
                                                            <tr class="odd">
421
                                                                <td
422
                                                                    style="width:160px;">
423
                                                                    <span>
424
                                                                        <xsl:text>Bus Speed</xsl:text>
425
                                                                    </span>
426
                                                                </td>
427
                                                                <td>
428
                                                                    <xsl:value-of
429
                                                                        select="@BusSpeed" />
430
                                                                    <span>
431
                                                                        <xsl:text> MHz</xsl:text>
432
                                                                    </span>
433
                                                                </td>
434
                                                            </tr>
435
                                                        </xsl:if>
436
                                                        <xsl:if
437
                                                            test="count(@Bogomips )&gt;0">
438
                                                            <tr class="odd">
439
                                                                <td
440
                                                                    style="width:160px;">
441
                                                                    <span>
442
                                                                        <xsl:text>System Bogomips</xsl:text>
443
                                                                    </span>
444
                                                                </td>
445
                                                                <td>
446
                                                                    <xsl:value-of
447
                                                                        select="round(@Bogomips)" />
448
                                                                </td>
449
                                                            </tr>
450
                                                        </xsl:if>
451
                                                        <xsl:if
452
                                                            test="count(@Manufacturer )&gt;0">
453
                                                            <tr class="odd">
454
                                                                <td
455
                                                                    style="width:160px;">
456
                                                                    <span>
457
                                                                        <xsl:text>Manufacturer</xsl:text>
458
                                                                    </span>
459
                                                                </td>
460
                                                                <td>
461
                                                                    <xsl:value-of
462
                                                                        select="@Manufacturer" />
463
                                                                </td>
464
                                                            </tr>
465
                                                        </xsl:if>
466
                                                        <xsl:if
467
                                                            test="count(@Load )&gt;0">
468
                                                            <tr class="odd">
469
                                                                <td
470
                                                                    style="width:160px;">
471
                                                                    <span>
472
                                                                        <xsl:text>Load Averages</xsl:text>
473
                                                                    </span>
474
                                                                </td>
475
                                                                <td>
476
                                                                    <xsl:value-of
477
                                                                        select="round(@Load)" />
478
                                                                    <span>
479
                                                                        <xsl:text>%</xsl:text>
480
                                                                    </span>
481
                                                                </td>
482
                                                            </tr>
483
                                                        </xsl:if>
484
                                                    </xsl:for-each>
485
                                                </tbody>
486
                                            </table>
487
                                        </xsl:for-each>
488
                                        <xsl:for-each select="PCI">
489
                                            <h3>
490
                                                <span>
491
                                                    <xsl:text>PCI Devices</xsl:text>
492
                                                </span>
493
                                            </h3>
494
                                            <table style="display:block; border-spacing:0;"
495
                                                id="pciTable"
496
                                                width="100%">
497
                                                <tbody>
498
                                                    <tr>
499
                                                        <td>
500
                                                            <ul
501
                                                                style="margin-left:10px;">
502
                                                                <xsl:for-each
503
                                                                    select="Device">
504
                                                                    <li>
505
                                                                        <xsl:if
506
                                                                            test="count(@Count )&gt;0">
507
                                                                            <xsl:if
508
                                                                                test="round(@Count) &gt;1">
509
                                                                                <span>
510
                                                                                    <xsl:text>(</xsl:text>
511
                                                                                </span>
512
                                                                                <xsl:value-of select="round(@Count)" />
513
                                                                                <span>
514
                                                                                    <xsl:text>x) </xsl:text>
515
                                                                                </span>
516
                                                                            </xsl:if>
517
                                                                        </xsl:if>
518
                                                                        <xsl:value-of
519
                                                                            select="@Name" />
520
                                                                    </li>
521
                                                                </xsl:for-each>
522
                                                            </ul>
523
                                                        </td>
524
                                                    </tr>
525
                                                </tbody>
526
                                            </table>
527
                                        </xsl:for-each>
528
                                        <xsl:for-each select="IDE">
529
                                            <h3 class="odd">
530
                                                <span>
531
                                                    <xsl:text>IDE Devices</xsl:text>
532
                                                </span>
533
                                            </h3>
534
                                            <table style="display:block; border-spacing:0;"
535
                                                class="odd" id="ideTable"
536
                                                width="100%">
537
                                                <tbody>
538
                                                    <tr>
539
                                                        <td>
540
                                                            <ul
541
                                                                style="margin-left:10px;">
542
                                                                <xsl:for-each
543
                                                                    select="Device">
544
                                                                    <li>
545
                                                                        <xsl:if
546
                                                                            test="count(@Count )&gt;0">
547
                                                                            <xsl:if
548
                                                                                test="round(@Count) &gt;1">
549
                                                                                <span>
550
                                                                                    <xsl:text>(</xsl:text>
551
                                                                                </span>
552
                                                                                <xsl:value-of select="round(@Count)" />
553
                                                                                <span>
554
                                                                                    <xsl:text>x) </xsl:text>
555
                                                                                </span>
556
                                                                            </xsl:if>
557
                                                                        </xsl:if>
558
                                                                        <xsl:value-of
559
                                                                            select="@Name" />
560
                                                                        <xsl:if
561
                                                                            test="count(@Capacity )&gt;0">
562
                                                                            <span>
563
                                                                                <xsl:text> (</xsl:text>
564
                                                                            </span>
565
                                                                            <xsl:value-of select="round(@Capacity div 1024)" />
566
                                                                            <span>
567
                                                                                <xsl:text> KiB)</xsl:text>
568
                                                                            </span>
569
                                                                        </xsl:if>
570
                                                                    </li>
571
                                                                </xsl:for-each>
572
                                                            </ul>
573
                                                        </td>
574
                                                    </tr>
575
                                                </tbody>
576
                                            </table>
577
                                        </xsl:for-each>
578
                                        <xsl:for-each select="SCSI">
579
                                            <h3>
580
                                                <span>
581
                                                    <xsl:text>SCSI Devices</xsl:text>
582
                                                </span>
583
                                            </h3>
584
                                            <table style="border-spacing:0;"
585
                                                id="scsiTable"
586
                                                width="100%">
587
                                                <tbody>
588
                                                    <tr>
589
                                                        <td
590
                                                            style="display:block;">
591
                                                            <ul
592
                                                                style="margin-left:10px;">
593
                                                                <xsl:for-each
594
                                                                    select="Device">
595
                                                                    <li>
596
                                                                        <xsl:if
597
                                                                            test="count(@Count )&gt;0">
598
                                                                            <xsl:if
599
                                                                                test="round(@Count) &gt;1">
600
                                                                                <span>
601
                                                                                    <xsl:text>(</xsl:text>
602
                                                                                </span>
603
                                                                                <xsl:value-of select="round(@Count)" />
604
                                                                                <span>
605
                                                                                    <xsl:text>x) </xsl:text>
606
                                                                                </span>
607
                                                                            </xsl:if>
608
                                                                        </xsl:if>
609
                                                                        <xsl:value-of
610
                                                                            select="@Name" />
611
                                                                        <xsl:if
612
                                                                            test="count(@Capacity )&gt;0">
613
                                                                            <span>
614
                                                                                <xsl:text> (</xsl:text>
615
                                                                            </span>
616
                                                                            <xsl:value-of select="round(@Capacity div 1024)" />
617
                                                                            <span>
618
                                                                                <xsl:text> KiB)</xsl:text>
619
                                                                            </span>
620
                                                                        </xsl:if>
621
                                                                    </li>
622
                                                                </xsl:for-each>
623
                                                            </ul>
624
                                                        </td>
625
                                                    </tr>
626
                                                </tbody>
627
                                            </table>
628
                                        </xsl:for-each>
629
                                        <xsl:for-each select="NVMe">
630
                                            <h3>
631
                                                <span>
632
                                                    <xsl:text>NVMe Devices</xsl:text>
633
                                                </span>
634
                                            </h3>
635
                                            <table style="border-spacing:0;"
636
                                                id="nvmeTable"
637
                                                width="100%">
638
                                                <tbody>
639
                                                    <tr>
640
                                                        <td
641
                                                            style="display:block;">
642
                                                            <ul
643
                                                                style="margin-left:10px;">
644
                                                                <xsl:for-each
645
                                                                    select="Device">
646
                                                                    <li>
647
                                                                        <xsl:if
648
                                                                            test="count(@Count )&gt;0">
649
                                                                            <xsl:if
650
                                                                                test="round(@Count) &gt;1">
651
                                                                                <span>
652
                                                                                    <xsl:text>(</xsl:text>
653
                                                                                </span>
654
                                                                                <xsl:value-of select="round(@Count)" />
655
                                                                                <span>
656
                                                                                    <xsl:text>x) </xsl:text>
657
                                                                                </span>
658
                                                                            </xsl:if>
659
                                                                        </xsl:if>
660
                                                                        <xsl:value-of
661
                                                                            select="@Name" />
662
                                                                        <xsl:if
663
                                                                            test="count(@Capacity )&gt;0">
664
                                                                            <span>
665
                                                                                <xsl:text> (</xsl:text>
666
                                                                            </span>
667
                                                                            <xsl:value-of select="round(@Capacity div 1024)" />
668
                                                                            <span>
669
                                                                                <xsl:text> KiB)</xsl:text>
670
                                                                            </span>
671
                                                                        </xsl:if>
672
                                                                    </li>
673
                                                                </xsl:for-each>
674
                                                            </ul>
675
                                                        </td>
676
                                                    </tr>
677
                                                </tbody>
678
                                            </table>
679
                                        </xsl:for-each>
680
                                        <xsl:for-each select="USB">
681
                                            <h3 class="odd">
682
                                                <span>
683
                                                    <xsl:text>USB Devices</xsl:text>
684
                                                </span>
685
                                            </h3>
686
                                            <table style="border-spacing:0;"
687
                                                class="odd" id="usbTable"
688
                                                width="100%">
689
                                                <tbody>
690
                                                    <tr>
691
                                                        <td>
692
                                                            <ul
693
                                                                style="margin-left:10px;">
694
                                                                <xsl:for-each
695
                                                                    select="Device">
696
                                                                    <li>
697
                                                                        <xsl:if
698
                                                                            test="count(@Count )&gt;0">
699
                                                                            <xsl:if
700
                                                                                test="round(@Count) &gt;1">
701
                                                                                <span>
702
                                                                                    <xsl:text>(</xsl:text>
703
                                                                                </span>
704
                                                                                <xsl:value-of select="round(@Count)" />
705
                                                                                <span>
706
                                                                                    <xsl:text>x) </xsl:text>
707
                                                                                </span>
708
                                                                            </xsl:if>
709
                                                                        </xsl:if>
710
                                                                        <xsl:value-of
711
                                                                            select="@Name" />
712
                                                                    </li>
713
                                                                </xsl:for-each>
714
                                                            </ul>
715
                                                        </td>
716
                                                    </tr>
717
                                                </tbody>
718
                                            </table>
719
                                        </xsl:for-each>
720
                                        <xsl:for-each select="TB">
721
                                            <h3 class="odd">
722
                                                <span>
723
                                                    <xsl:text>TB Devices</xsl:text>
724
                                                </span>
725
                                            </h3>
726
                                            <table style="border-spacing:0;"
727
                                                class="odd" id="tbTable"
728
                                                width="100%">
729
                                                <tbody>
730
                                                    <tr>
731
                                                        <td>
732
                                                            <ul
733
                                                                style="margin-left:10px;">
734
                                                                <xsl:for-each
735
                                                                    select="Device">
736
                                                                    <li>
737
                                                                        <xsl:if
738
                                                                            test="count(@Count )&gt;0">
739
                                                                            <xsl:if
740
                                                                                test="round(@Count) &gt;1">
741
                                                                                <span>
742
                                                                                    <xsl:text>(</xsl:text>
743
                                                                                </span>
744
                                                                                <xsl:value-of select="round(@Count)" />
745
                                                                                <span>
746
                                                                                    <xsl:text>x) </xsl:text>
747
                                                                                </span>
748
                                                                            </xsl:if>
749
                                                                        </xsl:if>
750
                                                                        <xsl:value-of
751
                                                                            select="@Name" />
752
                                                                    </li>
753
                                                                </xsl:for-each>
754
                                                            </ul>
755
                                                        </td>
756
                                                    </tr>
757
                                                </tbody>
758
                                            </table>
759
                                        </xsl:for-each>
760
                                        <xsl:for-each select="I2C">
761
                                            <h3 class="odd">
762
                                                <span>
763
                                                    <xsl:text>I2C Devices</xsl:text>
764
                                                </span>
765
                                            </h3>
766
                                            <table style="border-spacing:0;"
767
                                                class="odd" id="i2cTable"
768
                                                width="100%">
769
                                                <tbody>
770
                                                    <tr>
771
                                                        <td>
772
                                                            <ul
773
                                                                style="margin-left:10px;">
774
                                                                <xsl:for-each
775
                                                                    select="Device">
776
                                                                    <li>
777
                                                                        <xsl:if
778
                                                                            test="count(@Count )&gt;0">
779
                                                                            <xsl:if
780
                                                                                test="round(@Count) &gt;1">
781
                                                                                <span>
782
                                                                                    <xsl:text>(</xsl:text>
783
                                                                                </span>
784
                                                                                <xsl:value-of select="round(@Count)" />
785
                                                                                <span>
786
                                                                                    <xsl:text>x) </xsl:text>
787
                                                                                </span>
788
                                                                            </xsl:if>
789
                                                                        </xsl:if>
790
                                                                        <xsl:value-of
791
                                                                            select="@Name" />
792
                                                                    </li>
793
                                                                </xsl:for-each>
794
                                                                </ul>
795
                                                            </td>
796
                                                    </tr>
797
                                                </tbody>
798
                                            </table>
799
                                        </xsl:for-each>
800
                                    </div>
801
                                </xsl:for-each>
802
                            </div>
803
                            <div id="memory">
804
                                <xsl:for-each select="Memory">
805
                                    <h2>
806
                                        <span>
807
                                            <xsl:text>Memory Usage</xsl:text>
808
                                        </span>
809
                                    </h2>
810
                                    <div style="overflow-x:auto;">
811
                                        <table border="0"
812
                                            style="border-spacing:0;">
813
                                            <thead>
814
                                                <tr>
815
                                                    <th style="width:200px;">
816
                                                        <span>
817
                                                            <xsl:text>Type</xsl:text>
818
                                                        </span>
819
                                                    </th>
820
                                                    <th style="width:285px;">
821
                                                        <span>
822
                                                            <xsl:text>Usage</xsl:text>
823
                                                        </span>
824
                                                    </th>
825
                                                    <th style="width:100px;"
826
                                                        class="right">
827
                                                        <span>
828
                                                            <xsl:text>Free</xsl:text>
829
                                                        </span>
830
                                                    </th>
831
                                                    <th style="width:100px;"
832
                                                        class="right">
833
                                                        <span>
834
                                                            <xsl:text>Used</xsl:text>
835
                                                        </span>
836
                                                    </th>
837
                                                    <th style="width:100px;"
838
                                                        class="right">
839
                                                        <span>
840
                                                            <xsl:text>Size</xsl:text>
841
                                                        </span>
842
                                                    </th>
843
                                                </tr>
844
                                            </thead>
845
                                            <tbody>
846
                                                <tr class="odd">
847
                                                    <td style="width:200px;">
848
                                                        <span>
849
                                                            <xsl:text>Physical Memory</xsl:text>
850
                                                        </span>
851
                                                    </td>
852
                                                    <td style="width:285px;">
853
                                                        <div
854
                                                            style="float:left; width:{concat(  @Percent  , &apos;px&apos; )}; "
855
                                                            class="bar">
856
                                                            <span>
857
                                                                <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
858
                                                            </span>
859
                                                        </div>
860
                                                        <div style="float:left; ">
861
                                                            <span>
862
                                                                <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
863
                                                            </span>
864
                                                            <xsl:value-of
865
                                                                select="@Percent" />
866
                                                            <span>
867
                                                                <xsl:text>%</xsl:text>
868
                                                            </span>
869
                                                        </div>
870
                                                    </td>
871
                                                    <td style="width:100px;"
872
                                                        class="right">
873
                                                        <xsl:value-of
874
                                                            select="round(@Free div 1024)" />
875
                                                        <span>
876
                                                            <xsl:text> KiB</xsl:text>
877
                                                        </span>
878
                                                    </td>
879
                                                    <td style="width:100px;"
880
                                                        class="right">
881
                                                        <xsl:value-of
882
                                                            select="round(@Used div 1024)" />
883
                                                        <span>
884
                                                            <xsl:text> KiB</xsl:text>
885
                                                        </span>
886
                                                    </td>
887
                                                    <td style="width:100px;"
888
                                                        class="right">
889
                                                        <xsl:value-of
890
                                                            select="round(@Total div 1024)" />
891
                                                        <span>
892
                                                            <xsl:text> KiB</xsl:text>
893
                                                        </span>
894
                                                    </td>
895
                                                </tr>
896
                                                <xsl:for-each
897
                                                    select="Details">
898
                                                    <xsl:if
899
                                                        test="count(@* )&gt;0">
900
                                                        <xsl:if
901
                                                            test="count(@App )&gt;0">
902
                                                            <tr>
903
                                                                <td
904
                                                                    style="width:200px;">
905
                                                                    <span>
906
                                                                        <xsl:text>- Kernel + applications</xsl:text>
907
                                                                    </span>
908
                                                                </td>
909
                                                                <td
910
                                                                    style="width:285px;">
911
                                                                    <div
912
                                                                        style="float:left; width:{concat(  @AppPercent  , &apos;px&apos; )}; "
913
                                                                        class="bar">
914
                                                                        <span>
915
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
916
                                                                        </span>
917
                                                                    </div>
918
                                                                    <div
919
                                                                        style="float:left; ">
920
                                                                        <span>
921
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
922
                                                                        </span>
923
                                                                        <xsl:value-of
924
                                                                            select="@AppPercent" />
925
                                                                        <span>
926
                                                                            <xsl:text>%</xsl:text>
927
                                                                        </span>
928
                                                                    </div>
929
                                                                </td>
930
                                                                <td
931
                                                                    style="width:100px;"
932
                                                                    class="right" />
933
                                                                <td
934
                                                                    style="width:100px;"
935
                                                                    class="right">
936
                                                                    <xsl:value-of
937
                                                                        select="round(@App div 1024)" />
938
                                                                    <span>
939
                                                                        <xsl:text> KiB</xsl:text>
940
                                                                    </span>
941
                                                                </td>
942
                                                                <td
943
                                                                    style="width:100px;"
944
                                                                    class="right" />
945
                                                            </tr>
946
                                                        </xsl:if>
947
                                                        <xsl:if
948
                                                            test="count(@Cached )&gt;0">
949
                                                            <tr>
950
                                                                <td
951
                                                                    style="width:200px;">
952
                                                                    <span>
953
                                                                        <xsl:text>- Cached</xsl:text>
954
                                                                    </span>
955
                                                                </td>
956
                                                                <td
957
                                                                    style="width:285px;">
958
                                                                    <div
959
                                                                        style="float:left; width:{concat(  @CachedPercent  , &apos;px&apos; )}; "
960
                                                                        class="bar">
961
                                                                        <span>
962
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
963
                                                                        </span>
964
                                                                    </div>
965
                                                                    <div
966
                                                                        style="float:left; ">
967
                                                                        <span>
968
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
969
                                                                        </span>
970
                                                                        <xsl:value-of
971
                                                                            select="@CachedPercent" />
972
                                                                        <span>
973
                                                                            <xsl:text>%</xsl:text>
974
                                                                        </span>
975
                                                                    </div>
976
                                                                </td>
977
                                                                <td
978
                                                                    style="width:100px;"
979
                                                                    class="right" />
980
                                                                <td
981
                                                                    style="width:100px;"
982
                                                                    class="right">
983
                                                                    <xsl:value-of
984
                                                                        select="round(@Cached div 1024)" />
985
                                                                    <span>
986
                                                                        <xsl:text> KiB</xsl:text>
987
                                                                    </span>
988
                                                                </td>
989
                                                                <td
990
                                                                    style="width:100px;"
991
                                                                    class="right" />
992
                                                            </tr>
993
                                                        </xsl:if>
994
                                                        <xsl:if
995
                                                            test="count(@Buffers )&gt;0">
996
                                                            <tr>
997
                                                                <td
998
                                                                    style="width:200px;">
999
                                                                    <span>
1000
                                                                        <xsl:text>- Buffers</xsl:text>
1001
                                                                    </span>
1002
                                                                </td>
1003
                                                                <td
1004
                                                                    style="width:285px;">
1005
                                                                    <div
1006
                                                                        style="float:left; width:{concat(  @BuffersPercent  , &apos;px&apos; )}; "
1007
                                                                        class="bar">
1008
                                                                        <span>
1009
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1010
                                                                        </span>
1011
                                                                    </div>
1012
                                                                    <div
1013
                                                                        style="float:left; ">
1014
                                                                        <span>
1015
                                                                            <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1016
                                                                        </span>
1017
                                                                        <xsl:value-of
1018
                                                                            select="@BuffersPercent" />
1019
                                                                        <span>
1020
                                                                            <xsl:text>%</xsl:text>
1021
                                                                        </span>
1022
                                                                    </div>
1023
                                                                </td>
1024
                                                                <td
1025
                                                                    style="width:100px;"
1026
                                                                    class="right" />
1027
                                                                <td
1028
                                                                    style="width:100px;"
1029
                                                                    class="right">
1030
                                                                    <xsl:value-of
1031
                                                                        select="round(@Buffers div 1024)" />
1032
                                                                    <span>
1033
                                                                        <xsl:text> KiB</xsl:text>
1034
                                                                    </span>
1035
                                                                </td>
1036
                                                                <td
1037
                                                                    style="width:100px;"
1038
                                                                    class="right" />
1039
                                                            </tr>
1040
                                                        </xsl:if>
1041
                                                    </xsl:if>
1042
                                                </xsl:for-each>
1043
                                            </tbody>
1044
                                        </table>
1045
                                        <xsl:for-each select="Swap">
1046
                                            <table border="0"
1047
                                                style="border-spacing:0;"
1048
                                                width="100%">
1049
                                                <tbody>
1050
                                                    <tr class="odd">
1051
                                                        <td style="width:200px;">
1052
                                                            <span>
1053
                                                                <xsl:text>Disk Swap</xsl:text>
1054
                                                            </span>
1055
                                                        </td>
1056
                                                        <td style="width:285px;">
1057
                                                            <div
1058
                                                                style="float:left; width:{concat(  @Percent  , &apos;px&apos; )}; "
1059
                                                                class="bar">
1060
                                                                <span>
1061
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1062
                                                                </span>
1063
                                                            </div>
1064
                                                            <div
1065
                                                                style="float:left; ">
1066
                                                                <span>
1067
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1068
                                                                </span>
1069
                                                                <xsl:value-of
1070
                                                                    select="@Percent" />
1071
                                                                <span>
1072
                                                                    <xsl:text>%</xsl:text>
1073
                                                                </span>
1074
                                                            </div>
1075
                                                        </td>
1076
                                                        <td style="width:100px;"
1077
                                                            class="right">
1078
                                                            <xsl:value-of
1079
                                                                select="round(@Free div 1024)" />
1080
                                                            <span>
1081
                                                                <xsl:text> KiB</xsl:text>
1082
                                                            </span>
1083
                                                        </td>
1084
                                                        <td style="width:100px;"
1085
                                                            class="right">
1086
                                                            <xsl:value-of
1087
                                                                select="round(@Used div 1024)" />
1088
                                                            <span>
1089
                                                                <xsl:text> KiB</xsl:text>
1090
                                                            </span>
1091
                                                        </td>
1092
                                                        <td style="width:100px;"
1093
                                                            class="right">
1094
                                                            <xsl:value-of
1095
                                                                select="round(@Total div 1024)" />
1096
                                                            <span>
1097
                                                                <xsl:text> KiB</xsl:text>
1098
                                                            </span>
1099
                                                        </td>
1100
                                                    </tr>
1101
                                                    <xsl:for-each
1102
                                                        select="Mount">
1103
                                                        <tr class="odd">
1104
                                                            <td
1105
                                                                style="width:200px;">
1106
                                                                <span>
1107
                                                                    <xsl:text>- </xsl:text>
1108
                                                                    <xsl:value-of
1109
                                                                        select="@MountPoint" />
1110
                                                                </span>
1111
                                                            </td>
1112
                                                            <td
1113
                                                                style="width:285px;">
1114
                                                                <div
1115
                                                                    style="float:left; width:{concat(  @Percent  , &apos;px&apos; )}; "
1116
                                                                    class="bar">
1117
                                                                    <span>
1118
                                                                        <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1119
                                                                    </span>
1120
                                                                </div>
1121
                                                                <div
1122
                                                                    style="float:left; ">
1123
                                                                    <span>
1124
                                                                        <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1125
                                                                    </span>
1126
                                                                    <xsl:value-of
1127
                                                                        select="@Percent" />
1128
                                                                    <span>
1129
                                                                        <xsl:text>%</xsl:text>
1130
                                                                    </span>
1131
                                                                </div>
1132
                                                            </td>
1133
                                                            <td
1134
                                                                style="width:100px;"
1135
                                                                class="right">
1136
                                                                <xsl:value-of
1137
                                                                    select="round(@Free div 1024)" />
1138
                                                                <span>
1139
                                                                    <xsl:text> KiB</xsl:text>
1140
                                                                </span>
1141
                                                            </td>
1142
                                                            <td
1143
                                                                style="width:100px;"
1144
                                                                class="right">
1145
                                                                <xsl:value-of
1146
                                                                    select="round(@Used div 1024)" />
1147
                                                                <span>
1148
                                                                    <xsl:text> KiB</xsl:text>
1149
                                                                </span>
1150
                                                            </td>
1151
                                                            <td
1152
                                                                style="width:100px;"
1153
                                                                class="right">
1154
                                                                <xsl:value-of
1155
                                                                    select="round(@Total div 1024)" />
1156
                                                                <span>
1157
                                                                    <xsl:text> KiB</xsl:text>
1158
                                                                </span>
1159
                                                            </td>
1160
                                                        </tr>
1161
                                                    </xsl:for-each>
1162
                                                </tbody>
1163
                                            </table>
1164
                                        </xsl:for-each>
1165
                                    </div>
1166
                                </xsl:for-each>
1167
                            </div>
1168
                            <div id="filesystem">
1169
                                <h2>
1170
                                    <span>
1171
                                        <xsl:text>Mounted Filesystems</xsl:text>
1172
                                    </span>
1173
                                </h2>
1174
                                <div style="overflow-x:auto;">
1175
                                    <table style="border-spacing:0;"
1176
                                        class="stripMe" id="filesystemTable">
1177
                                        <thead>
1178
                                            <tr>
1179
                                                <th style="width:100px;">
1180
                                                    <span>
1181
                                                        <xsl:text>Mountpoint</xsl:text>
1182
                                                    </span>
1183
                                                </th>
1184
                                                <th style="width:50px;">
1185
                                                    <span>
1186
                                                        <xsl:text>Type</xsl:text>
1187
                                                    </span>
1188
                                                </th>
1189
                                                <th style="width:120px;">
1190
                                                    <span>
1191
                                                        <xsl:text>Partition</xsl:text>
1192
                                                    </span>
1193
                                                </th>
1194
                                                <th>
1195
                                                    <span>
1196
                                                        <xsl:text>Usage</xsl:text>
1197
                                                    </span>
1198
                                                </th>
1199
                                                <th style="width:100px;"
1200
                                                    class="right">
1201
                                                    <span>
1202
                                                        <xsl:text>Free</xsl:text>
1203
                                                    </span>
1204
                                                </th>
1205
                                                <th style="width:100px;"
1206
                                                    class="right">
1207
                                                    <span>
1208
                                                        <xsl:text>Used</xsl:text>
1209
                                                    </span>
1210
                                                </th>
1211
                                                <th style="width:100px;"
1212
                                                    class="right">
1213
                                                    <span>
1214
                                                        <xsl:text>Size</xsl:text>
1215
                                                    </span>
1216
                                                </th>
1217
                                            </tr>
1218
                                        </thead>
1219
                                        <tbody>
1220
                                            <xsl:for-each
1221
                                                select="FileSystem">
1222
                                                <xsl:for-each
1223
                                                    select="Mount">
1224
                                                    <tr>
1225
                                                        <td style="width:100px;">
1226
                                                            <xsl:value-of
1227
                                                                select="@MountPoint" />
1228
                                                        </td>
1229
                                                        <td style="width:50px;">
1230
                                                            <xsl:value-of
1231
                                                                select="@FSType" />
1232
                                                        </td>
1233
                                                        <td style="width:120px;">
1234
                                                            <xsl:value-of
1235
                                                                select="@Name" />
1236
                                                        </td>
1237
                                                        <td style="width:285px;">
1238
                                                            <div
1239
                                                                style="float:left; width:{concat(  @Percent  , &apos;px&apos; )}; "
1240
                                                                class="bar">
1241
                                                                <span>
1242
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1243
                                                                </span>
1244
                                                            </div>
1245
                                                            <div
1246
                                                                style="float:left; ">
1247
                                                                <span>
1248
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1249
                                                                </span>
1250
                                                                <xsl:value-of
1251
                                                                    select="@Percent" />
1252
                                                                <span>
1253
                                                                    <xsl:text>%</xsl:text>
1254
                                                                </span>
1255
                                                                <xsl:if
1256
                                                                    test="count(@Inodes )&gt;0">
1257
                                                                    <span>
1258
                                                                        <xsl:text> (</xsl:text>
1259
                                                                    </span>
1260
                                                                    <span
1261
                                                                        style="font-style:italic;">
1262
                                                                        <xsl:value-of
1263
                                                                            select="@Inodes" />
1264
                                                                    </span>
1265
                                                                    <span>
1266
                                                                        <xsl:text>%)</xsl:text>
1267
                                                                    </span>
1268
                                                                </xsl:if>
1269
                                                            </div>
1270
                                                        </td>
1271
                                                        <td style="width:100px;" class="right">
1272
                                                            <xsl:value-of select="round(@Free div 1024)" />
1273
                                                            <span>
1274
                                                                <xsl:text> KiB</xsl:text>
1275
                                                            </span>
1276
                                                        </td>
1277
                                                        <td style="width:100px;" class="right">
1278
                                                            <xsl:value-of select="round(@Used div 1024)" />
1279
                                                            <span>
1280
                                                                <xsl:text> KiB</xsl:text>
1281
                                                            </span>
1282
                                                        </td>
1283
                                                        <td style="width:100px;" class="right">
1284
                                                            <xsl:value-of select="round(@Total div 1024)" />
1285
                                                            <span>
1286
                                                                <xsl:text> KiB</xsl:text>
1287
                                                            </span>
1288
                                                        </td>
1289
                                                    </tr>
1290
                                                </xsl:for-each>
1291
                                            </xsl:for-each>
1292
                                        </tbody>
1293
                                    </table>
1294
                                </div>
1295
                            </div>
1296
                            <div id="network">
1297
                                <h2>
1298
                                    <span>
1299
                                        <xsl:text>Network Usage</xsl:text>
1300
                                    </span>
1301
                                </h2>
1302
                                <div style="overflow-x:auto;">
1303
                                    <div style="overflow-x:auto;">
1304
                                        <table style="border-spacing:0;"
1305
                                            class="stripMe" id="networkTable">
1306
                                            <thead>
1307
                                                <tr>
1308
                                                    <th>
1309
                                                        <span>
1310
                                                            <xsl:text>Device</xsl:text>
1311
                                                        </span>
1312
                                                    </th>
1313
                                                    <th class="right" width="60px">
1314
                                                        <span>
1315
                                                            <xsl:text>Received</xsl:text>
1316
                                                        </span>
1317
                                                    </th>
1318
                                                    <th class="right" width="60px">
1319
                                                        <span>
1320
                                                            <xsl:text>Send</xsl:text>
1321
                                                        </span>
1322
                                                    </th>
1323
                                                    <th class="right" width="60px">
1324
                                                        <span>
1325
                                                            <xsl:text>Err/Drop</xsl:text>
1326
                                                        </span>
1327
                                                    </th>
1328
                                                </tr>
1329
                                            </thead>
1330
                                            <tbody>
1331
                                                <xsl:for-each select="Network">
1332
                                                    <xsl:for-each select="NetDevice">
1333
                                                        <tr>
1334
                                                            <td>
1335
                                                                <xsl:value-of select="@Name"/>
1336
                                                            </td>
1337
                                                            <td class="right" width="60px">
1338
                                                                <span>
1339
                                                                    <xsl:value-of select="round(@RxBytes div 1024)"/>
1340
                                                                </span>
1341
                                                                <span>
1342
                                                                    <xsl:text> KiB</xsl:text>
1343
                                                                </span>
1344
                                                            </td>
1345
                                                            <td class="right" width="60px">
1346
                                                                <span>
1347
                                                                    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
1348
                                                                </span>
1349
                                                                <span>
1350
                                                                    <xsl:value-of select="round(@TxBytes div 1024)"/>
1351
                                                                </span>
1352
                                                                <span>
1353
                                                                    <xsl:text> KiB</xsl:text>
1354
                                                                </span>
1355
                                                            </td>
1356
                                                            <td class="right" width="60px">
1357
                                                                <xsl:value-of select="@Err"/>
1358
                                                                <span>
1359
                                                                    <xsl:text>/</xsl:text>
1360
                                                                </span>
1361
                                                                <xsl:value-of select="@Drops"/>
1362
                                                            </td>
1363
                                                        </tr>
1364
                                                    </xsl:for-each>
1365
                                                </xsl:for-each>
1366
                                            </tbody>
1367
                                        </table>
1368
                                    </div>
1369
                                </div>
1370
                            </div>
1371
                            <div id="footer">
1372
                                <span>
1373
                                    <xsl:text>Created by </xsl:text>
1374
                                </span>
1375
                                <a>
1376
                                    <xsl:choose>
1377
                                        <xsl:when test="substring(string(&apos;http://phpsysinfo.sourceforge.net/&apos;), 1, 1) = '#'">
1378
                                            <xsl:attribute name="href">
1379
                                                <xsl:value-of select="&apos;http://phpsysinfo.sourceforge.net/&apos;"/>
1380
                                            </xsl:attribute>
1381
                                        </xsl:when>
1382
                                        <xsl:otherwise>
1383
                                            <xsl:attribute name="href">
1384
                                                <xsl:if test="substring(string(&apos;http://phpsysinfo.sourceforge.net/&apos;), 2, 1) = ':'">
1385
                                                    <xsl:text>file:///</xsl:text>
1386
                                                </xsl:if>
1387
                                                <xsl:value-of select="translate(string(&apos;http://phpsysinfo.sourceforge.net/&apos;), '&#x5c;', '/')"/>
1388
                                            </xsl:attribute>
1389
                                        </xsl:otherwise>
1390
                                    </xsl:choose>
1391
                                    <span>
1392
                                        <xsl:text>phpSysInfo - </xsl:text>
1393
                                    </span>
1394
                                    <xsl:for-each select="Generation">
1395
                                        <xsl:for-each select="@version">
1396
                                            <span>
1397
                                                <xsl:value-of select="string(.)"/>
1398
                                            </span>
1399
                                        </xsl:for-each>
1400
                                    </xsl:for-each>
1401
                                </a>
1402
                            </div>
1403
                        </div>
1404
                    </xsl:for-each>
1405
                </xsl:for-each>
1406
            </body>
1407
        </html>
1408
    </xsl:template>
1409
</xsl:stylesheet>