3 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
5 <xsl:output method=
"html"/>
7 <xsl:variable name=
"modification.list" select=
"/cruisecontrol/modifications/modification"/>
9 <xsl:template match=
"/">
10 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
11 <!-- Modifications -->
13 <td class=
"sectionheader" colspan=
"5">
14 Modifications since last build (
<xsl:value-of select=
"count($modification.list)"/>)
18 <xsl:apply-templates select=
"$modification.list">
19 <xsl:sort select=
"date" order=
"descending" data-type=
"text" />
20 </xsl:apply-templates>
25 <!-- Modifications template -->
26 <xsl:template match=
"modification">
28 <xsl:if test=
"position() mod 2=0">
29 <xsl:attribute name=
"class">section-oddrow
</xsl:attribute>
31 <xsl:if test=
"position() mod 2!=0">
32 <xsl:attribute name=
"class">section-evenrow
</xsl:attribute>
35 <td class=
"section-data" valign=
"top"><xsl:value-of select=
"@type"/></td>
36 <td class=
"section-data" valign=
"top"><xsl:value-of select=
"user"/></td>
37 <td class=
"section-data" valign=
"top">
39 <xsl:when test=
"count(url) = 1 ">
41 <xsl:attribute name=
"href">
42 <xsl:value-of select=
"url" />
44 <xsl:if test=
"project != ''"><xsl:value-of select=
"project"/>/
</xsl:if>
45 <xsl:value-of select=
"filename"/>
49 <xsl:if test=
"project != ''"><xsl:value-of select=
"project"/>/
</xsl:if>
50 <xsl:value-of select=
"filename"/>
54 <td class=
"section-data" valign=
"top"><xsl:value-of select=
"comment"/></td>
55 <td class=
"section-data" valign=
"top"><xsl:value-of select=
"date"/></td>