2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 <xsl:output method="html" indent="yes"
4 doctype-public="-//W3C//DTD HTML 4.01//EN"
5 doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>
7 <xsl:template name="resultcell" match="result/*">
8 <xsl:element name="div">
9 <xsl:if test="contains(text(), 'ok')">
10 <xsl:attribute name="style">background-color: green; color: white;</xsl:attribute>
12 <xsl:if test="contains(text(), 'failed')">
13 <xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
17 <xsl:when test="name() = 'gcc_run'">
18 <xsl:element name="a">
20 <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
21 <xsl:attribute name="style">color: white;</xsl:attribute>
24 <xsl:attribute name="style">color: black;</xsl:attribute>
27 <xsl:attribute name="href">result_gcc_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
28 <xsl:value-of select="text()"/>
31 <xsl:when test="name() = 'firm_run'">
32 <xsl:element name="a">
34 <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
35 <xsl:attribute name="style">color: white;</xsl:attribute>
38 <xsl:attribute name="style">color: black;</xsl:attribute>
41 <xsl:attribute name="href">result_firm_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
42 <xsl:value-of select="text()"/>
45 <xsl:when test="name() = 'diff'">
46 <xsl:element name="a">
48 <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
49 <xsl:attribute name="style">color: white;</xsl:attribute>
52 <xsl:attribute name="style">color: black;</xsl:attribute>
55 <xsl:attribute name="href">result_diff_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
56 <xsl:value-of select="text()"/>
60 <xsl:value-of select="text()"/>
66 <xsl:template match="/">
69 <title>Results</title>
82 <xsl:for-each select="/results/result">
85 <xsl:element name="a">
86 <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
87 <xsl:value-of select="@name"/>
90 <td><xsl:apply-templates select="compile"/></td>
91 <td><xsl:apply-templates select="link"/></td>
92 <td><xsl:apply-templates select="gcc_compile"/></td>
93 <td><xsl:apply-templates select="gcc_run"/></td>
94 <td><xsl:apply-templates select="firm_run"/></td>
95 <td><xsl:apply-templates select="diff"/></td>