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=
"messages" select=
"/cruisecontrol//buildresults//message" />
9 <xsl:if test=
"count($messages) > 0">
10 <xsl:variable name=
"error.messages" select=
"$messages[(contains(text(), 'error ')) or @level='Error'] | /cruisecontrol//builderror/message | /cruisecontrol//internalerror/message" />
11 <xsl:variable name=
"error.messages.count" select=
"count($error.messages)" />
12 <xsl:variable name=
"warning.messages" select=
"$messages[(contains(text(), 'warning ')) or @level='Warning']" />
13 <xsl:variable name=
"warning.messages.count" select=
"count($warning.messages)" />
14 <xsl:variable name=
"total" select=
"count($error.messages) + count($warning.messages)"/>
16 <xsl:if test=
"$error.messages.count > 0">
17 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
19 <td class=
"sectionheader">
20 Errors: (
<xsl:value-of select=
"$error.messages.count"/>)
25 <xsl:apply-templates select=
"$error.messages"/>
30 <xsl:if test=
"$warning.messages.count > 0">
31 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
33 <td class=
"sectionheader">
34 Warnings: (
<xsl:value-of select=
"$warning.messages.count"/>)
37 <tr><td><xsl:apply-templates select=
"$warning.messages"/></td></tr>
43 <xsl:template match=
"message">
44 <pre class=
"section-error"><xsl:value-of select=
"text()"/></pre>