Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

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