2 <!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp
" "> ]
>
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%">
14 <td class=
"sectionheader">
15 Errors (
<xsl:value-of select=
"$errors.count"/>)
19 <td class=
"section-error">
20 <xsl:apply-templates select=
"$errors"/>
25 <xsl:if test=
"$warnings.count > 0">
26 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
28 <td class=
"sectionheader">
29 Warnings (
<xsl:value-of select=
"$warnings.count"/>)
33 <td class=
"section-warn">
34 <xsl:apply-templates select=
"$warning.events"/>
41 <xsl:template match=
"error">
42 <div style=
"color:orangered">
43 <xsl:if test=
"@file != ''" >
44 <xsl:value-of select=
"@file"/> (
<xsl:value-of select=
"@line"/>,
<xsl:value-of select=
"@column"/>):
46 error
<xsl:value-of select=
"@code"/>:
<xsl:value-of select=
"text()" />
50 <xsl:template match=
"warning">
51 <div style=
"color:gold">
52 <xsl:if test=
"@file != ''" >
53 <xsl:value-of select=
"@file"/> (
<xsl:value-of select=
"@line"/>,
<xsl:value-of select=
"@column"/>):
55 warning
<xsl:value-of select=
"@code"/>:
<xsl:value-of select=
"text()" />