3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
5 <xsl:output method=
"html"/>
7 <xsl:template match=
"/">
8 <xsl:variable name=
"modification.list" select=
"/cruisecontrol/modifications/modification"/>
10 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0">
12 <xsl:if test=
"/cruisecontrol/exception">
13 <tr><td class=
"header-title" colspan=
"2">BUILD EXCEPTION
</td></tr>
15 <td class=
"header-label"><nobr>Error Message:
</nobr></td>
16 <td class=
"header-data-error"><xsl:value-of select=
"/cruisecontrol/exception"/></td>
20 <xsl:if test=
"/cruisecontrol/build/@error">
21 <tr><td class=
"header-title" colspan=
"2">BUILD FAILED
</td></tr>
24 <xsl:if test=
"not (/cruisecontrol/build/@error) and not (/cruisecontrol/exception)">
25 <tr><td class=
"header-title" colspan=
"2">BUILD SUCCESSFUL
</td></tr>
29 <td class=
"header-label"><nobr>Project:
</nobr></td>
30 <td class=
"header-data"><xsl:value-of select=
"/cruisecontrol/@project"/></td>
33 <td class=
"header-label"><nobr>Date of build:
</nobr></td>
34 <td class=
"header-data"><xsl:value-of select=
"/cruisecontrol/build/@date"/></td>
37 <td class=
"header-label"><nobr>Running time:
</nobr></td>
38 <td class=
"header-data"><xsl:value-of select=
"/cruisecontrol/build/@buildtime"/></td>
41 <td class=
"header-label"><nobr>Build condition:
</nobr></td>
42 <td class=
"header-data">
43 <xsl:if test=
"/cruisecontrol/build/@buildcondition='ForceBuild'">
46 <xsl:if test=
"/cruisecontrol/build/@buildcondition='IfModificationExists'">
47 Modifications Detected
52 <xsl:apply-templates select=
"$modification.list">
53 <xsl:sort select=
"date" order=
"descending" data-type=
"text" />
54 </xsl:apply-templates>
59 <!-- Last Modification template -->
60 <xsl:template match=
"/cruisecontrol/modifications/modification">
61 <xsl:if test=
"position() = 1">
63 <td class=
"header-label"><nobr>Last changed:
</nobr></td>
64 <td class=
"header-data"><xsl:value-of select=
"date"/></td>
67 <td class=
"header-label" valign=
"top"><nobr>Last log entry:
</nobr></td>
68 <td class=
"header-data"><pre><xsl:value-of select=
"comment"/></pre></td>