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/result">
38 <xsl:element name="a">
39 <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
40 <xsl:value-of select="@name"/>
43 <td><xsl:apply-templates select="compile"/></td>
44 <td><xsl:apply-templates select="link"/></td>
45 <td><xsl:apply-templates select="gcc_compile"/></td>
46 <td><xsl:apply-templates select="gcc_run"/></td>
47 <td><xsl:apply-templates select="firm_run"/></td>
48 <td><xsl:apply-templates select="diff"/></td>