sextractor.xsl 19.3 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
1
2
3
4
5
6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
        <!ENTITY nbsp "&#160;">
        <!ENTITY deg "&#176;">
        <!ENTITY amin "&#180;">
        <!ENTITY asec "&#168;">
7
        <!ENTITY darr "&#8595;">
Emmanuel Bertin's avatar
Emmanuel Bertin committed
8
9
        ]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
10
11
12
13
14
15
16
17
18
<!-- 
#				sextractor.xsl
#
# Global XSL template
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#
#	This file part of:	SExtractor
#
19
#	Copyright:		(C) 2005-2010 Emmanuel Bertin - IAP/CNRS/UPMC
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
#	License:		GNU General Public License
#
#	SExtractor is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
# 	(at your option) any later version.
#	SExtractor is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#	You should have received a copy of the GNU General Public License
#	along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
#
#	Last modified:		11/10/2010
#
#%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -->
Emmanuel Bertin's avatar
Emmanuel Bertin committed
37
38
39
40

 <xsl:template match="/">
  <xsl:variable name="date" select="/VOTABLE/RESOURCE/RESOURCE[@name='MetaData']/PARAM[@name='Date']/@value"/>
  <xsl:variable name="time" select="/VOTABLE/RESOURCE/RESOURCE[@name='MetaData']/PARAM[@name='Time']/@value"/>
41
42
  <HTML>
   <HEAD>
43
44
    <link rel="shortcut icon" type="image/x-icon" href="http://astromatic.net/xsl/favicon.ico" />
    <script type="text/javascript" src="http://astromatic.net/xsl/sorttable.js"/>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
45
46

    <style type="text/css">
47
48
49
50
51
52
53
     p {
      font-family: sans-serif;
      }
     p.italic {font-style: italic}
     body {
      margin: 10px;
      background-color: #e0e0e0;
54
      background-image: url("http://astromatic.net/xsl/body_bg.jpg");
55
56
57
58
      background-repeat: repeat-x;
      background-position: top;
      min-width:662px;
      }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
59
     mono {font-family: monospace}
60
61
     elmin {color: green }
     elmax {color: red }
62
63
64
65
66
     elen {
      font-family: monospace;
      font-weight: bold;
      color: green
      }
67
68
69
     el {
      font-family: monospace;
      font-size: 100%;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
70
      color: black;
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
      }
     elm {
      font-family: monospace;
      font-size: 67%;
      white-space: nowrap;
      }
     elh {font-family: monospace;
      font-size: 120%;
      }
     elhi {
      font-family: monospace;
      font-size: 100%;
      white-space: nowrap;
      font-weight: normal;
      font-style: italic;
      }
     a {text-decoration: none; font-style: bold; color: #476674}
     a:hover {text-decoration: underline;}
     #header {
      padding: 5px;
      min-width: 662px;
92
      background-image: url("http://astromatic.net/xsl/astromaticleft.png");
93
94
95
96
97
98
99
100
      background-repeat: repeat-x;
      background-position: left top;
      text-align: left;
      font-size: 1.2em;
      margin: 0 0 30px 0;
      color:#d3e7f0;
      font-weight: bold;
      }
101
102
103
104
105
106
107
108
     hr {
      background-color:#9ABBCA;
      border-bottom:1px solid #FFFFFF;
      border-left:1px solid #9ABBCA;
      border-right:0 none;
      border-top:0 none;
      height:2px;
      }
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
     th {
      background-color:#d3e7f0;
      border-top: 1px solid white;
      border-left: 1px solid white;
      border-right: 1px solid #476674;
      border-bottom: 1px solid #476674;
      -moz-border-radius: 3px;
      -khtml-border-radius: 3px;
      -webkit-border-radius: 3px;
      border-radius: 3px;
      padding: 2px;
      line-height: 12px;
      }
     td {
      background-color:#f2f4f4;
      padding-left: 2px;
      padding-right: 2px;
      }
     table.sortable {
      border-top: 1px solid #476674;
      border-left: 1px solid #476674;
      border-right: 1px solid white;
      border-bottom: 1px solid white;
      -moz-border-radius: 3px;
      -khtml-border-radius: 3px;
      -webkit-border-radius: 3px;
      border-radius: 3px;
      }
     table.sortable a.sortheader {
      background-color:#d3e7f0;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
139
140
141
142
143
      font-weight: bold;
      font-size: 80%;
      text-decoration: none;
      display: button;
      }
144
145

     table.sortable span.sortarrow {
Emmanuel Bertin's avatar
Emmanuel Bertin committed
146
147
      color: black;
      font-weight: bold;
148
      text-decoration: blink;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
149
      }
150
     table.sortable a.sortheader.sub {vertical-align: sub}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
151
152
153
154
155
     </style>

     <title>
      Processing summary on <xsl:value-of select="$date"/> at <xsl:value-of select="$time"/>
     </title>
156
    </HEAD>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
157
    <BODY>
158
     <div id="header">
159
      <a href="/"><img style="vertical-align: middle; border:0px" src="http://astromatic.net/xsl/astromatic.png" title="Astromatic home" alt="Astromatic.net" /></a>  Processing summary
160
161
     </div>
     <xsl:call-template name="VOTable"/>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
162
   </BODY>
163
  </HTML>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
 </xsl:template>

<!-- **************** Generic XSL template for VOTables ****************** -->
 <xsl:template name="VOTable">
  <xsl:for-each select="/VOTABLE">
   <xsl:call-template name="Resource"/>
  </xsl:for-each>
 </xsl:template>

<!-- *************** Generic XSL template for Resources ****************** -->
 <xsl:template name="Resource">
  <xsl:for-each select="RESOURCE">
   <xsl:choose>
    <xsl:when test="@ID='SExtractor'">
     <xsl:call-template name="sextractor"/>
    </xsl:when>
   </xsl:choose>
  </xsl:for-each>
 </xsl:template>

<!-- ******************* XSL template for SExtractor ********************* -->
 <xsl:template name="sextractor">
  <xsl:for-each select="RESOURCE[@ID='MetaData']">
   <xsl:call-template name="RunInfo"/>
   <xsl:for-each select="/VOTABLE/RESOURCE[@ID='SExtractor']/TABLE[@ID='Source_List']">
    <xsl:call-template name="sources"/>
   </xsl:for-each>
   <xsl:for-each select="TABLE[@ID='Extension_Data']">
    <xsl:call-template name="extdata"/>
   </xsl:for-each>
   <xsl:for-each select="RESOURCE[@ID='Config']">
    <xsl:call-template name="Config"/>
   </xsl:for-each>
   <xsl:for-each select="TABLE[@ID='Warnings']">
    <xsl:call-template name="Warnings"/>
   </xsl:for-each>
  </xsl:for-each>
 </xsl:template>

<!-- ************* Generic XSL RunInfo template for MetaData ************* -->
 <xsl:template name="RunInfo">
  <p>
<!-- Software name, version, date, time and number of threads -->
   <a>
    <xsl:attribute name="href">
     <xsl:value-of select="PARAM[@name='Soft_URL']/@value"/>
    </xsl:attribute>
    <b>
     <xsl:value-of select="PARAM[@name='Software']/@value"/>&nbsp;<xsl:value-of select="PARAM[@name='Version']/@value"/>
    </b>
   </a>
   started on
   <b><xsl:value-of select="PARAM[@name='Date']/@value"/></b>
   at
   <b><xsl:value-of select="PARAM[@name='Time']/@value"/></b>
   with
   <b><xsl:value-of select="PARAM[@name='NThreads']/@value"/></b>
   thread<xsl:if test="PARAM[@name='NThreads']/@value &gt; 1">s</xsl:if>

<!-- Run time -->
   <xsl:variable name="duration" select="PARAM[@name='Duration']/@value"/>
   (run time:
    <b>
     <xsl:choose> 
      <xsl:when test="$duration &gt; 3600.0">
       <xsl:value-of
        select='concat(string(floor($duration div 3600)),
        " h ", format-number(floor(($duration div 60) mod 60.0), "00"),
        " min")'/>
      </xsl:when>
      <xsl:otherwise>
       <xsl:choose>
        <xsl:when test="$duration &gt; 60.0">
         <xsl:value-of
          select='concat(format-number(floor($duration div 60),"##"),
          " min ", format-number(floor($duration mod 60.0), "00")," s")'/>
        </xsl:when>
        <xsl:otherwise>
         <xsl:value-of select='concat(string($duration), " s")'/>
        </xsl:otherwise>
       </xsl:choose>
      </xsl:otherwise>
     </xsl:choose>
    </b>)
    <br />
   by user <b><xsl:value-of select="PARAM[@name='User']/@value"/></b>
   from <b><xsl:value-of select="PARAM[@name='Host']/@value"/></b>
   in <b><mono><xsl:value-of select="PARAM[@name='Path']/@value"/></mono></b>
  </p>
  <p>
   <b style="color: red"><xsl:if test="PARAM[@name='Error_Msg']/@value &gt; 0">
    An Error occured!!! </xsl:if>
   <xsl:value-of select="PARAM[@name='Error_Msg']/@value"/></b>
  </p>
 </xsl:template>

<!-- ******************** XSL template for Source List ******************** -->
 <xsl:template name="sources">
  <xsl:choose> 
   <xsl:when test="DATA/TABLEDATA">
    <p>
265
266
     <BUTTON type="button" onclick="showhideTable('sources')" title="click to expand">
     Source List&nbsp;&darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
267
268
269
270
     </BUTTON>
     <TABLE id="sources" class="sortable" style="display: none">
      <TR>
       <xsl:for-each select="FIELD">
271
272
273
274
275
276
277
        <TH align="center"><xsl:attribute name="title"><xsl:value-of select="DESCRIPTION"/></xsl:attribute>
         <elh><xsl:value-of select="@name"/></elh>
         <BR />
         <elhi>
          <xsl:value-of select="@unit"/>
          <xsl:if test="@unit = ''">-</xsl:if>
         </elhi>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
278
279
280
281
282
283
284
        </TH>
       </xsl:for-each>
      </TR>
      <xsl:for-each select="DATA/TABLEDATA">
       <xsl:for-each select="TR">
        <tr>
         <xsl:for-each select="TD">
285
          <td align="right" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
286
287
288
289
290
291
292
293
294
295
296
           <el><xsl:value-of select="self::TD"/></el>
          </td>
         </xsl:for-each>
        </tr>
       </xsl:for-each>
      </xsl:for-each>
     </TABLE>
    </p>
   </xsl:when>
   <xsl:otherwise>
    <p>
297
298
     <BUTTON type="button" onclick="showhideTable('catparam')" title="click to expand">
     Parameter List&nbsp;&darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
299
300
301
     </BUTTON>
     <TABLE id="catparam" class="sortable" style="display: none">
      <TR>
302
303
       <TH  align="center">Parameter Name</TH>
       <TH  align="center">Description</TH>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
304
305
306
      </TR>
      <xsl:for-each select="FIELD">
       <tr>
307
        <td align="left" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
308
309
         <el><xsl:value-of select="@name"/></el>
        </td>
310
        <td align="left" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
311
312
313
314
315
316
317
318
319
320
321
322
323
         <el><xsl:value-of select="DESCRIPTION"/></el>
        </td>
       </tr>
      </xsl:for-each>
     </TABLE>
    </p>
   </xsl:otherwise> 
  </xsl:choose>  
 </xsl:template>

<!-- ******************* XSL template for Extension Data ****************** -->
  <xsl:template name="extdata">
   <xsl:variable name="extension" select="count(FIELD[@name='Extension']/preceding-sibling::FIELD)+1"/>
324
   <xsl:variable name="headflag" select="count(FIELD[@name='External_Header']/preceding-sibling::FIELD)+1"/>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
325
326
327
328
329
330
   <xsl:variable name="date" select="count(FIELD[@name='Date']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="time" select="count(FIELD[@name='Time']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="duration" select="count(FIELD[@name='Duration']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="ndet" select="count(FIELD[@name='NDetect']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="nsex" select="count(FIELD[@name='NSextracted']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="imid" select="count(FIELD[@name='Image_Ident']/preceding-sibling::FIELD)+1"/>
331
   <xsl:variable name="nimage" select="FIELD[@name='Background_Mean']/@arraysize"/>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
332
333
334
335
336
337
338
   <xsl:variable name="backmean" select="count(FIELD[@name='Background_Mean']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="backsig" select="count(FIELD[@name='Background_StDev']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="thresh" select="count(FIELD[@name='Threshold']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="wscale" select="count(FIELD[@name='Weight_Scaling']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="pixscale" select="count(FIELD[@name='Pixel_Scale']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="epoch" select="count(FIELD[@name='Epoch']/preceding-sibling::FIELD)+1"/>
   <p>
339
340
    <BUTTON type="button" onclick="showhideTable('extdata')" title="click to expand">
     Summary Table on Output Catalog&nbsp;&darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
341
    </BUTTON>
342
    <TABLE class="sortable" id="extdata" style="display: none">
Emmanuel Bertin's avatar
Emmanuel Bertin committed
343
     <TR>
344
345
      <TH>Extension</TH>
      <TH>Ext.Header</TH>
346
347
348
349
350
351
352
353
354
355
356
357
      <TH >Date</TH>
      <TH >Time</TH>
      <TH >Duration</TH>
      <TH >Detected Source Number</TH>
      <TH >Sextracted Source Number</TH>
      <TH >Image ID</TH>
      <TH >Mean Background</TH>
      <TH >Sigma Background</TH>
      <TH >Detection Threshold</TH>
      <TH >Weight Scaling</TH>
      <TH >Pixel Scale</TH>
      <TH >Epoch</TH>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
358
359
360
361
     </TR>
     <xsl:for-each select="DATA/TABLEDATA">
      <xsl:for-each select="TR">
       <tr>
362
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
363
364
         <el><xsl:value-of select="TD[$extension]"/></el>
        </td>
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
        <td align="center">
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <xsl:choose>
            <xsl:when test="substring(TD[$headflag],1,1) = 'T'">
             <elen>H</elen>
            </xsl:when>
            <xsl:otherwise>
             <el>-</el>
            </xsl:otherwise>
           </xsl:choose>
           <HR/>
           <xsl:choose>
            <xsl:when test="substring(TD[$headflag],3,1) = 'T'">
             <elen>H</elen>
            </xsl:when>
            <xsl:otherwise>
             <el>-</el>
            </xsl:otherwise>
           </xsl:choose>
          </xsl:when>
          <xsl:otherwise>
           <xsl:choose>
            <xsl:when test="TD[$headflag] = 'T'">
             <elen>H</elen>
            </xsl:when>
            <xsl:otherwise>
             <el>-</el>
            </xsl:otherwise>
           </xsl:choose>
          </xsl:otherwise>
         </xsl:choose>
        </td>
398
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
399
400
         <el><xsl:value-of select="TD[$date]"/></el>
        </td>
401
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
402
403
         <el><xsl:value-of select="TD[$time]"/></el>
        </td>
404
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
405
406
         <el><xsl:value-of select="TD[$duration]"/></el>
        </td>
407
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
408
409
         <el><xsl:value-of select="TD[$ndet]"/></el>
        </td>
410
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
411
412
         <el><xsl:value-of select="TD[$nsex]"/></el>
        </td>
413
        <td align="center" >
414
415
416
417
418
419
420
421
422
423
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="substring-before(TD[$imid], ',')"/></el>
           <HR/>
           <el><xsl:value-of select="substring-after(TD[$imid], ',')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="TD[$imid]"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
424
        </td>
425
        <td align="right" >
426
427
428
429
430
431
432
433
434
435
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="format-number(substring-before(TD[$backmean], ' '),'#####0.00')"/></el>
           <HR/>
           <el><xsl:value-of select="format-number(substring-after(TD[$backmean], ' '),'#####0.00')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="format-number(TD[$backmean],'#####0.00')"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
436
        </td>
437
        <td align="right" >
438
439
440
441
442
443
444
445
446
447
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="format-number(substring-before(TD[$backsig], ' '),'###0.000')"/></el>
           <HR/>
           <el><xsl:value-of select="format-number(substring-after(TD[$backsig], ' '),'###0.000')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="format-number(TD[$backsig],'###0.000')"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
448
        </td>
449
        <td align="right" >
450
451
452
453
454
455
456
457
458
459
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="format-number(substring-before(TD[$thresh], ' '),'#####0.00')"/></el>
           <HR/>
           <el><xsl:value-of select="format-number(substring-after(TD[$thresh], ' '),'#####0.00')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="format-number(TD[$thresh],'#####0.00')"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
460
        </td>
461
        <td align="right" >
462
463
464
465
466
467
468
469
470
471
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="format-number(substring-before(TD[$wscale], ' '),'#####0.00')"/></el>
           <HR/>
           <el><xsl:value-of select="format-number(substring-after(TD[$wscale], ' '),'#####0.00')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="format-number(TD[$wscale],'#####0.00')"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
472
        </td>
473
        <td align="right" >
474
475
476
477
478
479
480
481
482
483
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="format-number(substring-before(TD[$pixscale], ' '),'#0.000')"/></el>
           <HR/>
           <el><xsl:value-of select="format-number(substring-after(TD[$pixscale], ' '),'#0.000')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="format-number(TD[$pixscale],'#0.000')"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
484
        </td>
485
        <td align="center" >
486
487
488
489
490
491
492
493
494
495
         <xsl:choose>
          <xsl:when test="$nimage = 2">
           <el><xsl:value-of select="substring-before(TD[$epoch], ' ')"/></el>
           <HR/>
           <el><xsl:value-of select="substring-after(TD[$epoch], ' ')"/></el>
          </xsl:when>
          <xsl:otherwise>
           <el><xsl:value-of select="TD[$epoch]"/></el>
          </xsl:otherwise>
         </xsl:choose>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
496
497
498
499
500
501
502
503
504
505
506
        </td>
       </tr>
      </xsl:for-each>
     </xsl:for-each>
    </TABLE>
   </p>
 </xsl:template>

<!-- ******************** XSL template for Config File ******************** -->
  <xsl:template name="Config">
   <p>
507
508
509
510
    <BUTTON type="button" onclick="showhideTable('config')" title="click to expand">
     Configuration File:
     <B><xsl:value-of select="PARAM[@name='Prefs_Name']/@value"/></B>
     &darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
511
512
513
    </BUTTON>
    <TABLE id="config" class="sortable" style="display: none">
     <TR>
514
515
      <TH >Config Parameter</TH>
      <TH >Value</TH>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
516
517
     </TR>
     <xsl:for-each select="PARAM[position()>2]">
518
      <tr >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
519
520
521
522
523
524
525
       <td><el><xsl:value-of select="@name"/></el></td>
       <td><el><xsl:value-of select="@value"/></el></td>
      </tr>
     </xsl:for-each>
    </TABLE>
   </p>
   <p>
526
527
    <BUTTON type="button" onclick="showhideTable('commandline')" title="click to expand">
     Command Line&nbsp;&darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
528
529
530
    </BUTTON>
    <TABLE id="commandline" style="display: none">
     <TR>
531
532
533
      <TD  style="font-size: 80%;">
       <el><xsl:value-of select="PARAM[@name='Command_Line']/@value"/></el>
      </TD>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
534
535
536
537
538
539
540
541
542
543
544
     </TR>
    </TABLE>
   </p>
  </xsl:template>

<!-- ********************** XSL template for Warnings ********************** -->
  <xsl:template name="Warnings">
   <xsl:variable name="date" select="count(FIELD[@name='Date']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="time" select="count(FIELD[@name='Time']/preceding-sibling::FIELD)+1"/>
   <xsl:variable name="msg" select="count(FIELD[@name='Msg']/preceding-sibling::FIELD)+1"/>
   <p>
545
546
    <BUTTON type="button" onclick="showhideTable('warnings')" title="click to expand">
     Warnings (limited to the last 100)&nbsp;&darr;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
547
    </BUTTON>
548
    <TABLE id="warnings" class="sortable" style="display: none">
Emmanuel Bertin's avatar
Emmanuel Bertin committed
549
     <TR style="font-size: 80%;">
550
551
552
      <TH >Date</TH>
      <TH >Time</TH>
      <TH >Message</TH>
Emmanuel Bertin's avatar
Emmanuel Bertin committed
553
554
555
556
     </TR>
     <xsl:for-each select="DATA/TABLEDATA">
      <xsl:for-each select="TR">
       <tr>
557
        <td  >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
558
559
         <el><xsl:value-of select="TD[$date]"/></el>
        </td>
560
        <td >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
561
562
         <el><xsl:value-of select="TD[$time]"/></el>
        </td>
563
        <td align="center" >
Emmanuel Bertin's avatar
Emmanuel Bertin committed
564
565
566
567
568
569
570
571
572
573
574
575
         <el><xsl:value-of select="TD[$msg]"/></el>
        </td>
       </tr>
      </xsl:for-each>
     </xsl:for-each>
    </TABLE>
   </p>
 </xsl:template>

 <xsl:template name="Rest">
</xsl:template>
</xsl:stylesheet>