<xsl:if test="contains(text(), 'failed')">
<xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
</xsl:if>
- <xsl:value-of select="text()"/>
+
+ <xsl:choose>
+ <xsl:when test="name() = 'gcc_run'">
+ <xsl:element name="a">
+ <xsl:choose>
+ <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+ <xsl:attribute name="style">color: white;</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="style">color: black;</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:attribute name="href">result_gcc_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+ <xsl:value-of select="text()"/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="name() = 'firm_run'">
+ <xsl:element name="a">
+ <xsl:choose>
+ <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+ <xsl:attribute name="style">color: white;</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="style">color: black;</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:attribute name="href">result_firm_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+ <xsl:value-of select="text()"/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:when test="name() = 'diff'">
+ <xsl:element name="a">
+ <xsl:choose>
+ <xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
+ <xsl:attribute name="style">color: white;</xsl:attribute>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:attribute name="style">color: black;</xsl:attribute>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:attribute name="href">result_diff_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
+ <xsl:value-of select="text()"/>
+ </xsl:element>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="text()"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:element>
</xsl:template>
<th>Firm Run</th>
<th>Results</th>
</tr>
- <xsl:for-each select="/results/result">
+ <xsl:for-each select="/results/section">
<tr>
- <td>
- <xsl:element name="a">
- <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
- <xsl:value-of select="@name"/>
- </xsl:element>
- </td>
- <td><xsl:apply-templates select="compile"/></td>
- <td><xsl:apply-templates select="link"/></td>
- <td><xsl:apply-templates select="gcc_compile"/></td>
- <td><xsl:apply-templates select="gcc_run"/></td>
- <td><xsl:apply-templates select="firm_run"/></td>
- <td><xsl:apply-templates select="diff"/></td>
+ <th colspan="7" style="background-color: yellow; color: black;"><xsl:value-of select="@name"/></th>
</tr>
+ <xsl:for-each select="result">
+ <tr>
+ <td>
+ <xsl:element name="a">
+ <xsl:attribute name="href">buildresult_<xsl:value-of select="@name"/>.txt</xsl:attribute>
+ <xsl:value-of select="@name"/>
+ </xsl:element>
+ </td>
+ <td><xsl:apply-templates select="compile"/></td>
+ <td><xsl:apply-templates select="link"/></td>
+ <td><xsl:apply-templates select="gcc_compile"/></td>
+ <td><xsl:apply-templates select="gcc_run"/></td>
+ <td><xsl:apply-templates select="firm_run"/></td>
+ <td><xsl:apply-templates select="diff"/></td>
+ </tr>
+ </xsl:for-each>
</xsl:for-each>
</table>
</body>