Applied patch from Jan Limpens 'ReflectionBasedDictionaryAdapter needs to check if...
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / compile-msbuild.xsl
blobee30b882d1c3f6d5bbdc1cb82c63969088641d00
1 <?xml version="1.0"?>
2 <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
3 <xsl:stylesheet
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
5 <xsl:output method="html"/>
6 <xsl:template match="/">
7 <xsl:variable name="errors" select="/cruisecontrol//msbuild//error" />
8 <xsl:variable name="errors.count" select="count($errors)" />
9 <xsl:variable name="warnings" select="/cruisecontrol//msbuild/warning" />
10 <xsl:variable name="warnings.count" select="count($warnings)" />
11 <xsl:if test="$errors.count > 0">
12 <table class="section-table" cellpadding="2" cellspacing="0" border="0" width="98%">
13 <tr>
14 <td class="sectionheader">
15 Errors (<xsl:value-of select="$errors.count"/>)
16 </td>
17 </tr>
18 <tr>
19 <td class="section-error">
20 <xsl:apply-templates select="$errors"/>
21 </td>
22 </tr>
23 </table>
24 </xsl:if>
25 <xsl:if test="$warnings.count > 0">
26 <table class="section-table" cellpadding="2" cellspacing="0" border="0" width="98%">
27 <tr>
28 <td class="sectionheader">
29 Warnings (<xsl:value-of select="$warnings.count"/>)
30 </td>
31 </tr>
32 <tr>
33 <td class="section-warn">
34 <xsl:apply-templates select="$warning.events"/>
35 </td>
36 </tr>
37 </table>
38 </xsl:if>
39 </xsl:template>
41 <xsl:template match="error">
42 <div style="color:orangered">
43 <xsl:if test="@file != ''" >
44 <xsl:value-of select="@file"/>&nbsp;(<xsl:value-of select="@line"/>,<xsl:value-of select="@column"/>):&nbsp;
45 </xsl:if>
46 error&nbsp;<xsl:value-of select="@code"/>:&nbsp;<xsl:value-of select="text()" />
47 </div>
48 </xsl:template>
50 <xsl:template match="warning">
51 <div style="color:gold">
52 <xsl:if test="@file != ''" >
53 <xsl:value-of select="@file"/>&nbsp;(<xsl:value-of select="@line"/>,<xsl:value-of select="@column"/>):&nbsp;
54 </xsl:if>
55 warning&nbsp;<xsl:value-of select="@code"/>:&nbsp;<xsl:value-of select="text()" />
56 </div>
57 </xsl:template>
58 </xsl:stylesheet>