mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

maudj
29.02.2008 4e52e8917368ee2a6dba040ddcdcdec1262906ed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!--
 ! CDDL HEADER START
 !
 ! The contents of this file are subject to the terms of the
 ! Common Development and Distribution License, Version 1.0 only
 ! (the "License").  You may not use this file except in compliance
 ! with the License.
 !
 ! You can obtain a copy of the license at
 ! trunk/opends/resource/legal-notices/OpenDS.LICENSE
 ! or https://OpenDS.dev.java.net/OpenDS.LICENSE.
 ! See the License for the specific language governing permissions
 ! and limitations under the License.
 !
 ! When distributing Covered Code, include this CDDL HEADER in each
 ! file and include the License file at
 ! trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
 ! add the following below this CDDL HEADER, with the fields enclosed
 ! by brackets "[]" replaced with your own identifying information:
 !      Portions Copyright [yyyy] [name of copyright owner]
 !
 ! CDDL HEADER END
 !
 !      Copyright 2007-2008 Sun Microsystems, Inc.
 ! -->
 
  <xsl:variable name="tests" select="/qa/functional-tests/results/test"/>
  <xsl:variable name="groups" select="/qa/functional-tests/results/group"/>
  <xsl:template match="/">
    <!-- beginning of the html content output -->
    <xsl:element name="html">
      <xsl:element name="head">
        <link rel="SHORTCUT ICON" href="https://opends.dev.java.net/public/images/opends_favicon.gif" />
        <style type="text/css">
        /* <![CDATA[ */
         @import "/branding/css/tigris.css";
         @import "/branding/css/inst.css";
          ul.myCollapsible, ul.myCollapsible ul {
            margin: 0;
            padding: 0;
            list-style-type: none;
            /*font-family: verdana, arial, Helvetica, sans-serif;*/
            font-size: 10pt;
          
            width:100%;                  /* sets the size of the expandable blocks */
            /*border: 1px solid #000;    /* puts a black border around the menu blocks */
            /*background-color: #8aa;    /* makes the menu blocks mint green - a bg-color MUST be included for IE to work properly! */
            padding-left: 0px;           /* stops the usual indent from ul */
            cursor: default;             /* gives an arrow cursor */
            margin-left: 0px;            /* Opera 7 final's margin and margin-box model cause problems */
          }
          ul.myCollapsible li {
            display: block;
            padding: 0px 0px;
            width: 100%;
            color: #000;
            background-color: #ffffff;
            text-decoration: none;
            list-style-type: none;       /* removes the bullet points */
            margin: 0px;                 /* Opera 7 puts large spacings between li elements */
            position: relative;          /* makes the menu blocks be positioned relative to their parent menu item
                                            the lack of offset makes these appear normal, but it will make a difference
                                            to the absolutely positioned child blocks */
            /*color: #fff;               /* sets the default font colour to white */
          }
          ul.myCollapsible li > ul {     /* using the > selector prevents many lesser browsers (and IE - see below) hiding child ULs */
            display: none;               /* hides child menu blocks - one of the most important declarations */
            position: relative;          /* make child blocks hover without leaving space for them */
            top: 0px;                    /* position slightly lower than the parent menu item */
            left: 15px;                  /* this must not be more than the width of the parent block, or the mouse will
                                            have to move off the element to move between blocks, and the menu will close */
          }
          ul.myCollapsible li:hover, ul.myCollapsible li.CSStoHighlight {
            color: #000;                   /* black */
            /*background-color: #f0f0f0;*/     /* light grey background */
            text-decoration: none;         
            border-top: 1px solid #333;    /* simulate the 3d effect  */
            border-left: 1px solid #333;   /* with border colors */
            border-bottom: 1px solid #fff;
            border-right: 1px solid #fff;
          }
          ul.myCollapsible ul.CSStoShow {     /* must not be combined with the next rule or IE gets confused */
            display: block;              /* specially to go with the className changes in the behaviour file */
          }
          ul.myCollapsible li:hover > ul {    /* one of the most important declarations - the browser must detect hovering over arbitrary elements
                                                 the > targets only the child ul, not any child uls of that child ul */
            display: block;                   /* makes the child block visible - one of the most important declarations */
          }
          /* and some link styles */
          ul.myCollapsible li a { color: #00a; display: block; width: 100%; text-decoration: underline; }
          ul.myCollapsible li a:hover, ul.myCollapsible li a.CSStoHighLink { color: #00f; }
          ul.myCollapsible li:hover > a { color: #e00; } /* supports links in branch headings - should not be display: block; */
          .perfect      { background-color: #90ee90 }
          .acceptable   { background-color: #fffc00 }
          .unacceptable { background-color: #ff0000 }
          .error        { background-color: #ff0000 }
          .warning      { background-color: #ffa200 }
          table.toc     { background-color: #dfdfdf;
                          cell-spacing: 3;
                          border: 0;
                          width: 100%
                        }
          TD,TH { margin:0;
                  line-height:100%;
                  padding-left:0.5em;
                  padding-right:0.5em;
                }
          table { border-spacing:0;
                  border-collapse:collapse;
                  border-width:1px;
                  border-color: #ccc;
                  border-style:solid
                }
          TH {font-family:verdana,arial,sans-serif;font-size:10pt;} 
          td {font-family:courier,monospace;font-size:10pt;} 
          A:link {color:#0000EE;text-decoration:none;} 
          A:visited {color:#0000EE;text-decoration:none;} 
          A:hover {color:#0000EE;text-decoration:underline;} 
         /* ]]> */
        </style>
        <link rel="stylesheet" type="text/css" href="/branding/css/print.css" media="print" />
        <link rel="stylesheet" href="https://opends.dev.java.net/public/css/opends.css" type="text/css" />
        <xsl:variable name="version"  select="/qa/functional-tests/identification/version"/>
        <xsl:element name="title">
          <xsl:value-of select="concat('Functional tests report for OpenDS-',$version)"/>
        </xsl:element>
      </xsl:element>
      <xsl:apply-templates/>
    </xsl:element>
  </xsl:template>
 
 
    <xsl:template match="results">
    <xsl:variable name="identification" select="/qa/functional-tests/identification"/>
    <xsl:variable name="total"          select="count($tests)"/>
    <xsl:variable name="pass"           select="count($tests[result='pass'])"/>
    <xsl:variable name="fail"           select="count($tests[result='fail'])"/>
    <xsl:variable name="known"           select="count($tests[result='known'])"/>
    <xsl:variable name="unknown"        select="count($tests[result='inconclusive'])"/>
    <xsl:variable name="rate"           select="round((($pass div $total) * 100) - 0.5)"/>
    <!--- Test Report Header Variables -->
    <table class="tertmasttable" width="100%" cellspacing="0">
      <tbody>
        <tr>
          <td><div class="collectionheader"><xsl:value-of select="concat('Test Report for OpenDS ',$identification/version)"/></div></td>
          <td width="10%"><a href="https://opends.dev.java.net/"><img src="https://opends.dev.java.net/public/images/opends_logo_sm.png" alt="OpenDS Logo" width="104" height="33" border="0" align="middle" /></a> </td>
        </tr>
      </tbody>
    </table>
 
    <!-- Shaded Line -->
    <hr noshade="noshade" size="1" />
  
    <!-- Percentage Result -->
    <table width="100%">
      <xsl:attribute name="class">
        <xsl:choose>
          <xsl:when test="$rate &lt; 80">
            <xsl:value-of select="'unacceptable'" />
          </xsl:when>
          <xsl:when test="$rate &lt; 90">
            <xsl:value-of select="'acceptable'" />
          </xsl:when>
          <xsl:otherwise>
            <xsl:value-of select="'perfect'" />
          </xsl:otherwise>
        </xsl:choose>
      </xsl:attribute>
      <tr>
        <td align="center">
          <xsl:element name="font">
            <xsl:attribute name="size">
              <xsl:value-of select="'+2'"/>
            </xsl:attribute>
            <xsl:value-of select="concat($rate,'%')"/>
          </xsl:element>
        </td>
      </tr>
    </table>
 
    <!-- Shaded Line -->
    <hr noshade="noshade" size="1" />
 
    <!-- Identification table -->
    <p>
      <table width="100%">
        <tr>
          <th align="center">Build</th>
          <th align="center">Revision</th>
          <th align="center">Platform</th>
          <th align="center">JVM</th>
          <th align="center" width="5%">Total</th>
          <th align="center" width="5%">Pass</th>
          <th align="center" width="5%">Fail</th>
          <th align="center" width="5%">Known Issues</th>
          <th align="center" width="5%">Inconclusive</th>
          <th align="center" width="5%">Coverage</th>
        </tr>
        <tr>
          <th align="center"><xsl:value-of select="$identification/buildid"/></th>
          <th align="center"><xsl:value-of select="$identification/revision"/></th>
          <th align="center"><xsl:value-of select="$identification/os-label"/></th>
          <th align="center"><xsl:value-of select="$identification/jvm-label"/></th>
          <th align="center"><xsl:value-of select="$total"/></th>
          <th align="center"><xsl:value-of select="$pass"/></th>
          <th align="center"><xsl:value-of select="$fail"/></th>
          <th align="center"><xsl:value-of select="$known"/></th>
          <th align="center"><xsl:value-of select="$unknown"/></th>
          <th align="center">
            <a>
              <!-- TODO: make this conditional -->
              <xsl:attribute name="href">
                <xsl:value-of select="'coverage/coverage.html'"/>
              </xsl:attribute>
              <xsl:value-of select="/qa/functional-tests/results/all/coverage"/>%
            </a>
          </th>
        </tr>
      </table>
    </p>
    
    <!-- table of contents -->
    <center><h2>Table of Contents</h2></center>
    <table width="100%">
      <tr>
        <td>Description</td>
        <td width="5%">Success Rate</td>
        <td width="5%">Pass</td>
        <td width="5%">Fail</td>
        <td width="5%">Known</td>
        <td width="5%">Inc.</td>
        <td width="5%">Cov.</td>
      </tr>
    </table>
    <ul class="myCollapsible">
      <xsl:for-each select="$tests">
        <xsl:sort select="group" order="ascending"/>
        <xsl:variable name="group" select="group"/>
        <xsl:if test="generate-id(.)=generate-id($tests[group=$group])">
          <xsl:variable name="group-total"    select="count($tests[group=$group])"/>
          <xsl:variable name="group-pass"    select="count($tests[group=$group][result='pass'])"/>
          <xsl:variable name="group-fail"    select="count($tests[group=$group][result='fail'])"/>
          <xsl:variable name="group-known"    select="count($tests[group=$group][result='known'])"/>
          <xsl:variable name="group-unknown" select="count($tests[group=$group][result='inconclusive'])"/>
          <xsl:variable name="group-rate"    select="round((($group-pass div $group-total) * 100) - 0.5)"/>
          <li>
            <table class="toc">
              <tr>
                <!-- define the color for the whole table row according to success rate -->
                <xsl:attribute name="class">
                  <xsl:choose>
                    <xsl:when test="$group-rate &lt; 80">
                      <xsl:value-of select="'unacceptable'" />
                    </xsl:when>
                    <xsl:when test="$group-rate &lt; 90">
                      <xsl:value-of select="'acceptable'" />
                    </xsl:when>
                    <xsl:otherwise>
                      <xsl:value-of select="'perfect'" />
                    </xsl:otherwise>
                  </xsl:choose>
                </xsl:attribute>
                <td>
                  <a>
                    <xsl:attribute name="href">
                      <xsl:value-of select="concat('#',$group)"/>
                    </xsl:attribute>
                      <xsl:value-of select="$group"/>
                  </a>
                </td>
                <td width="5%"><xsl:value-of select="$group-rate"/>%</td>
                <td width="5%"><xsl:value-of select="$group-pass"/></td>
                <td width="5%">
                  <xsl:attribute name="class">
                    <xsl:choose>
                      <xsl:when test="$group-fail &gt; 0">
                        <xsl:value-of select="'error'" />
                      </xsl:when>
                    </xsl:choose>
                  </xsl:attribute>
                  <xsl:value-of select="$group-fail"/>
                </td>
                <td width="5%">
                  <xsl:attribute name="class">
                    <xsl:choose>
                      <xsl:when test="$group-known &gt; 0">
                        <xsl:value-of select="'warning'" />
                      </xsl:when>
                    </xsl:choose>
                  </xsl:attribute>
                  <xsl:value-of select="$group-known"/>
                </td>
                <td width="5%">
                  <xsl:attribute name="class">
                    <xsl:choose>
                      <xsl:when test="$group-unknown &gt; 0">
                        <xsl:value-of select="'warning'" />
                      </xsl:when>
                    </xsl:choose>
                    </xsl:attribute>
                  <xsl:value-of select="$group-unknown"/>
                </td>
                <td width="5%">
                  <a>
                    <xsl:attribute name="href">
                      <xsl:value-of select="concat(concat('coverage/',$group),'/coverage.html')"/>
                    </xsl:attribute>
                    <xsl:value-of select="/qa/functional-tests/results/group[name='$group']/coverage"/>%
                  </a>
                </td>
              </tr>
            </table>
            <ul>
              <xsl:for-each select="$tests[group=$group]">
                <xsl:variable name="suite" select="suite"/>
                <xsl:if test="generate-id(.)=generate-id($tests[group=$group][suite=$suite])">
                  <xsl:variable name="suite-total"   select="count($tests[group=$group][suite=$suite])"/>
                  <xsl:variable name="suite-pass"    select="count($tests[group=$group][suite=$suite][result='pass'])"/>
                  <xsl:variable name="suite-fail"    select="count($tests[group=$group][suite=$suite][result='fail'])"/>
                  <xsl:variable name="suite-known"    select="count($tests[group=$group][suite=$suite][result='known'])"/>
                  <xsl:variable name="suite-unknown" select="count($tests[group=$group][suite=$suite][result='inconclusive'])"/>
                  <xsl:variable name="suite-rate"    select="round((($suite-pass div $suite-total) * 100) - 0.5)"/>
                  <li>
                    <table class="toc">
                      <tr>
                        <xsl:attribute name="class">
                          <xsl:choose>
                            <xsl:when test="$suite-rate &lt; 80">
                              <xsl:value-of select="'unacceptable'" />
                            </xsl:when>
                            <xsl:when test="$suite-rate &lt; 90">
                              <xsl:value-of select="'acceptable'" />
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="'perfect'" />
                            </xsl:otherwise>
                          </xsl:choose>
                        </xsl:attribute>
                        <td>
                          <a>
                            <xsl:attribute name="href">
                              <xsl:value-of select="concat(concat(concat('#',$group),'-'),$suite)"/>
                            </xsl:attribute>
                            <xsl:value-of select="$suite"/>
                          </a>
                        </td>
                        <td width="5%">
                          <xsl:value-of select="concat($suite-rate,'%')"/>
                        </td>
                        <td width="5%">
                          <xsl:value-of select="$suite-pass"/>
                        </td>
                        <td width="5%">
                          <xsl:attribute name="class">
                            <xsl:choose>
                              <xsl:when test="$suite-fail &gt; 0">
                                <xsl:value-of select="'error'" />
                              </xsl:when>
                            </xsl:choose>
                          </xsl:attribute>
                          <xsl:value-of select="$suite-fail"/>
                        </td>
                        <td width="5%">
                          <xsl:attribute name="class">
                            <xsl:choose>
                              <xsl:when test="$suite-known &gt; 0">
                                <xsl:value-of select="'warning'" />
                              </xsl:when>
                            </xsl:choose>
                          </xsl:attribute>
                          <xsl:value-of select="$suite-known"/>
                        </td>
                        <td width="5%">
                          <xsl:attribute name="class">
                            <xsl:choose>
                              <xsl:when test="$suite-unknown &gt; 0">
                                <xsl:value-of select="'warning'" />
                              </xsl:when>
                            </xsl:choose>
                          </xsl:attribute>
                          <xsl:value-of select="$suite-unknown"/>
                        </td>
                      </tr>
                    </table>
                    <ul>
                      <xsl:for-each select="$tests[group=$group][suite=$suite][result='fail' or result='inconclusive' or result='known']">
                        <xsl:variable name="name" select="name"/>
                        <li>
                          <table>
                            <tr>
                              <xsl:attribute name="class">
                                <xsl:choose>
                                  <xsl:when test="result='fail'">
                                    <xsl:value-of select="'unacceptable'" />
                                  </xsl:when>
                                  <xsl:when test="result='known'">
                                    <xsl:value-of select="'acceptable'" />
                                  </xsl:when>
                                  <xsl:otherwise>
                                    <xsl:value-of select="'perfect'" />
                                  </xsl:otherwise>
                                </xsl:choose>
                              </xsl:attribute>
                              <td>
                                <a>
                                  <xsl:attribute name="href">
                                    <xsl:value-of select="concat(concat(concat(concat(concat('#',$group),'-'),$suite),'-'),$name)"/>
                                  </xsl:attribute>
                                  <xsl:value-of select="name"/>
                                </a>
                              </td>
                              <td width="10%">
                                <xsl:for-each select="./issues">
                                  <xsl:variable name="issue" select="issue" />
                                  <a target="issue">
                                    <xsl:attribute name="href">
                                      <xsl:value-of select="concat('https://opends.dev.java.net/issues/show_bug.cgi?id=',$issue)" />
                                    </xsl:attribute>
                                    <xsl:value-of select="$issue" />
                                  </a><br />
                                </xsl:for-each>
                              </td>
                            </tr>
                          </table>
                          <ul>
                            <li>Test Log<br />
                              <ul>
                                <li>
                                  <pre><xsl:value-of select="log" /></pre>
                                </li>
                              </ul>
                            </li>
                            <li>Server access Log<br />
                              <ul>
                                <li>
                                  <pre><xsl:value-of select="access" /></pre>
                                </li>
                              </ul>
                            </li>
                            <li>Server error Log<br />
                              <ul>
                                <li>
                                  <pre><xsl:value-of select="error" /></pre>
                                </li>
                              </ul>
                            </li>
                          </ul>
                        </li>
                      </xsl:for-each>
                    </ul>
                  </li>
                </xsl:if>
              </xsl:for-each>
            </ul>
          </li>
        </xsl:if>
      </xsl:for-each>
    </ul>
    
    <!-- this section generate each group's table report -->
    <xsl:for-each select="$tests">
      <xsl:sort select="start" order="ascending"/>
      <xsl:variable name="group" select="group"/>
      <xsl:if test="generate-id(.)=generate-id($tests[group=$group])">
        <xsl:variable name="group-total"    select="count($tests[group=$group])"/>
        <xsl:variable name="group-pass"     select="count($tests[group=$group][result='pass'])"/>
        <xsl:variable name="group-fail"     select="count($tests[group=$group][result='fail'])"/>
        <xsl:variable name="group-known"    select="count($tests[group=$group][result='known'])"/>
        <xsl:variable name="group-unknown"  select="count($tests[group=$group][result='inconclusive'])"/>
        <xsl:variable name="group-rate"     select="round((($group-pass div $group-total) * 100) - 0.5)"/>
        <xsl:variable name="group-coverage" select="coverage"/>
        <p>
          <table>
            <tr>
              <th>Group</th>
              <th width="5%">Success Rate</th>
              <th width="5%">Pass</th>
              <th width="5%">Fail</th>
              <th width="5%">Known</th>
              <th width="5%">Inc.</th>
              <th width="5%">Cov.</th>
            </tr>
            <tr>
              <xsl:attribute name="class">
                <xsl:choose>
                  <xsl:when test="$group-rate &lt; 80">
                    <xsl:value-of select="'unacceptable'" />
                  </xsl:when>
                  <xsl:when test="$group-rate &lt; 90">
                    <xsl:value-of select="'acceptable'" />
                  </xsl:when>
                  <xsl:otherwise>
                    <xsl:value-of select="'perfect'" />
                  </xsl:otherwise>
                </xsl:choose>
              </xsl:attribute>
              <td align="center">
                <a>
                  <xsl:attribute name="name">
                    <xsl:value-of select="group"/>
                  </xsl:attribute>  
                  <xsl:value-of select="group"/> 
                </a>
              </td>
              <td align="center"><xsl:value-of select="$group-rate"/>%</td>
              <td align="center"><xsl:value-of select="$group-pass"/></td>
              <td align="center"><xsl:value-of select="$group-fail"/></td>
              <td align="center"><xsl:value-of select="$group-known"/></td>
              <td align="center"><xsl:value-of select="$group-unknown"/></td>
              <td>
                <a>
                  <xsl:attribute name="href">
                    <xsl:value-of select="concat(concat('coverage/',$group),'/coverage.html')"/>
                  </xsl:attribute>
                  <xsl:variable name="group-cov" select="/qa/functional-tests/group[name=$group]" />
                  <xsl:value-of select="$group-cov/coverage"/>%
                </a>
              </td>
            </tr>
            <xsl:for-each select="$tests[group=$group]">
              <xsl:variable name="suite" select="suite"/>
              <xsl:if test="generate-id(.)=generate-id($tests[group=$group][suite=$suite])">
                <xsl:variable name="suite-total"   select="count($tests[group=$group][suite=$suite])"/>
                <xsl:variable name="suite-pass"    select="count($tests[group=$group][suite=$suite][result='pass'])"/>
                <xsl:variable name="suite-fail"    select="count($tests[group=$group][suite=$suite][result='fail'])"/>
                <xsl:variable name="suite-known"   select="count($tests[group=$group][suite=$suite][result='known'])"/>
                <xsl:variable name="suite-unknown" select="count($tests[group=$group][suite=$suite][result='inconclusive'])"/>
                <xsl:variable name="suite-rate"    select="round((($suite-pass div $suite-total) * 100) - 0.5)"/>
                <tr>
                  <td align="right" colspan="5">
                    <table border="0" cellspacing="3" width="90%">
                      <tr>
                        <th>Group</th>
                        <th width="40%">Suite</th>
                        <th width="5%">Success rate</th>
                        <th width="5%">Pass</th>
                        <th width="5%">Fail</th>
                        <th width="5%">Known</th>
                        <th width="5%">Inc.</th>
                      </tr>
                      <tr>
                        <xsl:attribute name="class">
                          <xsl:choose>
                            <xsl:when test="$suite-rate &lt; 80">
                              <xsl:value-of select="'unacceptable'" />
                            </xsl:when>
                            <xsl:when test="$suite-rate &lt; 90">
                              <xsl:value-of select="'acceptable'" />
                            </xsl:when>
                            <xsl:otherwise>
                              <xsl:value-of select="'perfect'" />
                            </xsl:otherwise>
                          </xsl:choose>
                        </xsl:attribute>
                        <td><xsl:value-of select="$group"/></td>
                        <td>
                          <a>
                            <xsl:attribute name="name">
                              <xsl:value-of select="concat(concat($group,'-'),$suite)"/>
                            </xsl:attribute>  
                            <xsl:value-of select="$suite"/>
                          </a>
                        </td>
                        <td><xsl:value-of select="$suite-rate"/>%</td>
                        <td><xsl:value-of select="$suite-pass"/></td>
                        <td><xsl:value-of select="$suite-fail"/></td>
                        <td><xsl:value-of select="$suite-known"/></td>
                        <td><xsl:value-of select="$suite-unknown"/></td>
                      </tr>
                    </table>
                    <table  border="0" cellspacing="3" width="80%">
                      <tr>
                        <th>Group</th>
                        <th>Suite</th>
                        <th>Test Case</th>
                        <th width="5%">Duration</th>
                        <th width="5%">Outcome</th>
                      </tr>
                      <xsl:for-each select="$tests[group=$group][suite=$suite]">
                        <xsl:variable name="name" select="name"/>
                        <tr>
                          <td>
                            <xsl:value-of select="group"/>
                          </td>
                          <td>
                            <xsl:value-of select="suite"/>
                          </td>
                          <td>
                            <a>
                              <xsl:attribute name="name">
                                <xsl:value-of select="concat(concat(concat(concat($group,'-'),$suite),'-'),$name)"/>
                              </xsl:attribute>
                              <xsl:value-of select="name"/>
                            </a>
                          </td>
                          <td>
                            <xsl:value-of select="duration"/>
                          </td>
                          <td>
                            <xsl:value-of select="result"/>
                          </td>
                        </tr>
                      </xsl:for-each>
                    </table>
                  </td>
                </tr>
              </xsl:if>
            </xsl:for-each>
          </table>
        </p>
      </xsl:if>
    </xsl:for-each>
 
    <!-- Additional Information -->
    <xsl:element name="h2">
      <xsl:value-of select="'Additional Information'"/>
    </xsl:element>
  
    <xsl:variable name="tests-dir" select="$identification/tests-dir"/>
      
    <xsl:element name="table">
      <xsl:element name="tr">
        <xsl:element name="td">
          <xsl:element name="b">
            <xsl:value-of select="'Test Archive: '"/>
          </xsl:element>
        </xsl:element>
        <xsl:element name="td">
          <xsl:attribute name="align">
            <xsl:value-of select="'center'"/>
          </xsl:attribute>
          <xsl:element name="b">
            <xsl:value-of select="$tests-dir"/>
          </xsl:element>
        </xsl:element>          
      </xsl:element>
    </xsl:element>
    <xsl:element name="br"/>
 
  </xsl:template>
</xsl:stylesheet>