summaryrefslogtreecommitdiff
path: root/tools/regression/xsl_reports/xsl/v2/boostbook_log.xsl
blob: 009f0eb27ce10c81ca26042ab499ad82bfa095e3 (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
<?xml version="1.0" encoding="utf-8"?>
<!--

Copyright MetaCommunications, Inc. 2003-2007.

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:func="http://exslt.org/functions"
    xmlns:meta="http://www.meta-comm.com"
    extension-element-prefixes="func"
    exclude-result-prefixes="func meta"
    version="1.0">

<xsl:output method="html" encoding="UTF-8"/>
<xsl:template match="/">
    <html>
        <head>
            <title>BoostBook build log for <xsl:value-of select="build/@timestamp"/></title>
            <style>
                span.failure { background-color: red; }
            </style>
        </head>
        <body>
            <xsl:apply-templates/>
        </body>
    </html>
</xsl:template>
    <xsl:template match="build">
        <pre>
            <xsl:apply-templates/>
        </pre>
    </xsl:template>
    
    <xsl:template match="line">
        <span class="{@type}"><xsl:value-of select="text()"/></span><br/>
    </xsl:template>
</xsl:stylesheet>