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>
15 <xsl:value-of select="text()"/>
19 <xsl:template match="/">
22 <title>Results</title>
35 <xsl:for-each select="/results/section">
37 <th colspan="7" style="background-color: yellow; color: black;"><xsl:value-of select="@name"/></th>
39 <xsl:for-each select="result">
42 <xsl:element name="a">
43 <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
44 <xsl:value-of select="@name"/>
47 <td><xsl:apply-templates select="compile"/></td>
48 <td><xsl:apply-templates select="link"/></td>
49 <td><xsl:apply-templates select="gcc_compile"/></td>
50 <td><xsl:apply-templates select="gcc_run"/></td>
51 <td><xsl:apply-templates select="firm_run"/></td>
52 <td><xsl:apply-templates select="diff"/></td>