GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / cruise / reporting-app / xsl / maven.xsl
blob9a38092e9f65f4968bc72b1777bde28cd78a5b31
1 <?xml version="1.0"?>
2 <!--********************************************************************************
3 * CruiseControl, a Continuous Integration Toolkit
4 * Copyright (c) 2003, ThoughtWorks, Inc.
5 * 651 W Washington Ave. Suite 600
6 * Chicago, IL 60661 USA
7 * All rights reserved.
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
11 * are met:
13 * + Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
16 * + Redistributions in binary form must reproduce the above
17 * copyright notice, this list of conditions and the following
18 * disclaimer in the documentation and/or other materials provided
19 * with the distribution.
21 * + Neither the name of ThoughtWorks, Inc., CruiseControl, nor the
22 * names of its contributors may be used to endorse or promote
23 * products derived from this software without specific prior
24 * written permission.
26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
30 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 ********************************************************************************-->
38 <xsl:stylesheet
39 version="1.0"
40 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
41 xmlns="http://www.w3.org/TR/html4/strict.dtd" >
43 <xsl:output method="html"/>
45 <xsl:variable name="mavengoal" select="/cruisecontrol/build//mavengoal"/>
47 <xsl:template match="/">
49 <xsl:variable name="maven.messages" select="$mavengoal/message"/>
50 <xsl:variable name="maven.error.messages" select="$mavengoal/message[@priority='error']"/>
51 <xsl:variable name="maven.warn.messages" select="$mavengoal/message[@priority='warn']"/>
52 <xsl:variable name="maven.info.messages" select="$mavengoal/message[@priority='info']"/>
54 <xsl:if test="count($maven.messages) > 0">
55 <table align="center" cellpadding="2" cellspacing="0" border="0" width="98%">
56 <!-- Style download notifications first -->
57 <tr class="compile-sectionheader">
58 <td>Initial Messages</td>
59 </tr>
60 <tr>
61 <td>
62 <xsl:apply-templates select="cruisecontrol/build/message"/>
63 </td>
64 </tr>
65 <xsl:apply-templates select="$mavengoal"/>
66 </table>
67 </xsl:if>
68 </xsl:template>
70 <xsl:template match="mavengoal">
71 <tr class="compile-sectionheader">
72 <td>
73 <xsl:value-of select="@name"/>
74 </td>
75 </tr>
76 <tr>
77 <td>
78 <xsl:apply-templates select="./message"/>
79 </td>
80 </tr>
81 </xsl:template>
83 <xsl:template match="message[@priority='error']">
84 <span class="compile-error-data">
85 <xsl:value-of select="text()"/><xsl:text disable-output-escaping="yes"><![CDATA[<br/>]]></xsl:text>
86 </span>
87 </xsl:template>
89 <xsl:template match="message[@priority='warn']">
90 <span class="compile-data">
91 <xsl:value-of select="text()"/><xsl:text disable-output-escaping="yes"><![CDATA[<br/>]]></xsl:text>
92 </span>
93 </xsl:template>
95 <xsl:template match="message[@priority='info']">
96 <span class="compile-data">
97 <xsl:value-of select="text()"/><xsl:text disable-output-escaping="yes"><![CDATA[<br/>]]></xsl:text>
98 </span>
99 </xsl:template>
101 </xsl:stylesheet>