summaryrefslogtreecommitdiff
path: root/tools/regression/xsl_reports/xsl/v2/runners.xsl
blob: 9bda7db8d3edd3e81205eb9cff135eee1e3fb2ef (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<!--

Copyright MetaCommunications, Inc. 2003-2004.

Distributed under the Boost Software License, Version 1.0. (See
accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)

-->

<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:exsl="http://exslt.org/common"
    extension-element-prefixes="exsl"
    version="1.0">

  <xsl:output method="html"/>

  <xsl:template match="/">
    <html>
      <body bgcolor="#FFFFFF">
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="test-run">
    <table>
      <tr>
        <td>
            <xsl:message>Writing runner document <xsl:value-of select="@runner"/></xsl:message>
          <a href="{@runner}.html"><xsl:value-of select="@runner"/></a>
          <exsl:document href="{@runner}.html"
            method="html" 
            doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" 
            encoding="utf-8"
            indent="yes">
            <html>
              <head>
                <title><xsl:value-of select="@runner"/></title>
              </head>
              <body>
                <h1><xsl:value-of select="@runner"/></h1>
                <hr></hr>
                <xsl:value-of select="comment/text()" disable-output-escaping="yes"/>
              </body>
            </html>
          </exsl:document>
        </td>     
      </tr>
    </table>    
  </xsl:template>

</xsl:stylesheet>