Fix the build.
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / fit.xsl
blob2d693ca404e7b21dbf150eed0255d6e57f813bd8
1 <?xml version="1.0"?>
2 <xsl:stylesheet
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:output method="html"/>
7 <xsl:variable name="hrefnode" select="/cruisecontrol/build/buildresults//task[@name='fit']/message[starts-with(text(), 'results')]"/>
8 <xsl:variable name="resultsnode" select="/cruisecontrol/build/buildresults//task[@name='fit']/message[contains(text(), 'fixtures run')]"/>
9 <xsl:variable name="ahref" select="substring-after($hrefnode, ':')"/>
11 <xsl:template match="/">
12 <xsl:if test="count($hrefnode) > 0">
13 <table cellpadding="2" cellspacing="0" border="0" width="98%">
14 <tr>
15 <td class="sectionheader" colspan="2">
16 Acceptance Tests: <xsl:value-of select="$resultsnode"/>
17 </td>
19 </tr>
20 <tr>
21 <td><a href="{$ahref}">test results</a></td>
22 </tr>
23 </table>
24 </xsl:if>
25 </xsl:template>
26 </xsl:stylesheet>