Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / header.xsl
blob6903898af8844035e41bc428ca328d818950d886
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: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>
14 <tr>
15 <td class="header-label"><nobr>Error Message:</nobr></td>
16 <td class="header-data-error"><xsl:value-of select="/cruisecontrol/exception"/></td>
17 </tr>
18 </xsl:if>
20 <xsl:if test="/cruisecontrol/build/@error">
21 <tr><td class="header-title" colspan="2">BUILD FAILED</td></tr>
22 </xsl:if>
24 <xsl:if test="not (/cruisecontrol/build/@error) and not (/cruisecontrol/exception)">
25 <tr><td class="header-title" colspan="2">BUILD SUCCESSFUL</td></tr>
26 </xsl:if>
28 <tr>
29 <td class="header-label"><nobr>Project:</nobr></td>
30 <td class="header-data"><xsl:value-of select="/cruisecontrol/@project"/></td>
31 </tr>
32 <tr>
33 <td class="header-label"><nobr>Date of build:</nobr></td>
34 <td class="header-data"><xsl:value-of select="/cruisecontrol/build/@date"/></td>
35 </tr>
36 <tr>
37 <td class="header-label"><nobr>Running time:</nobr></td>
38 <td class="header-data"><xsl:value-of select="/cruisecontrol/build/@buildtime"/></td>
39 </tr>
40 <tr>
41 <td class="header-label"><nobr>Build condition:</nobr></td>
42 <td class="header-data">
43 <xsl:if test="/cruisecontrol/build/@buildcondition='ForceBuild'">
44 Forced Build
45 </xsl:if>
46 <xsl:if test="/cruisecontrol/build/@buildcondition='IfModificationExists'">
47 Modifications Detected
48 </xsl:if>
49 </td>
50 </tr>
52 <xsl:apply-templates select="$modification.list">
53 <xsl:sort select="date" order="descending" data-type="text" />
54 </xsl:apply-templates>
56 </table>
57 </xsl:template>
59 <!-- Last Modification template -->
60 <xsl:template match="/cruisecontrol/modifications/modification">
61 <xsl:if test="position() = 1">
62 <tr>
63 <td class="header-label"><nobr>Last changed:</nobr></td>
64 <td class="header-data"><xsl:value-of select="date"/></td>
65 </tr>
66 <tr>
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>
69 </tr>
70 </xsl:if>
71 </xsl:template>
72 </xsl:stylesheet>