Applied patch from Jan Limpens 'ReflectionBasedDictionaryAdapter needs to check if...
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / modifications.xsl
blob5d19e4b67eb5b07007d9f97dd649a345910ab2ee
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="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 -->
12 <tr>
13 <td class="sectionheader" colspan="5">
14 Modifications since last build (<xsl:value-of select="count($modification.list)"/>)
15 </td>
16 </tr>
18 <xsl:apply-templates select="$modification.list">
19 <xsl:sort select="date" order="descending" data-type="text" />
20 </xsl:apply-templates>
22 </table>
23 </xsl:template>
25 <!-- Modifications template -->
26 <xsl:template match="modification">
27 <tr>
28 <xsl:if test="position() mod 2=0">
29 <xsl:attribute name="class">section-oddrow</xsl:attribute>
30 </xsl:if>
31 <xsl:if test="position() mod 2!=0">
32 <xsl:attribute name="class">section-evenrow</xsl:attribute>
33 </xsl:if>
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">
38 <xsl:choose>
39 <xsl:when test="count(url) = 1 ">
40 <a>
41 <xsl:attribute name="href">
42 <xsl:value-of select="url" />
43 </xsl:attribute>
44 <xsl:if test="project != ''"><xsl:value-of select="project"/>/</xsl:if>
45 <xsl:value-of select="filename"/>
46 </a>
47 </xsl:when>
48 <xsl:otherwise>
49 <xsl:if test="project != ''"><xsl:value-of select="project"/>/</xsl:if>
50 <xsl:value-of select="filename"/>
51 </xsl:otherwise>
52 </xsl:choose>
53 </td>
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>
56 </tr>
57 </xsl:template>
59 </xsl:stylesheet>