Split messages by severity

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
carlos 2005-10-04 00:30:25 +00:00
parent a9f062057b
commit 161d2ff233

View File

@ -71,14 +71,32 @@
</table> </table>
</section> </section>
<section name="Checkstyle Error Summary"> <xsl:apply-templates select="." mode="count">
<xsl:with-param name="severity">error</xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="count">
<xsl:with-param name="severity">warning</xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="." mode="count">
<xsl:with-param name="severity">info</xsl:with-param>
</xsl:apply-templates>
</body>
</document>
</xsl:template>
<xsl:template match="/" mode="count">
<xsl:param name="severity"/>
<xsl:element name="section">
<xsl:attribute name="name">Checkstyle <xsl:value-of select="$severity"/> Summary</xsl:attribute>
<table> <table>
<tr> <tr>
<th>Error</th> <th>Error</th>
<th>Count</th> <th>Count</th>
</tr> </tr>
<xsl:for-each select="//error" > <xsl:for-each select="//error[@severity=$severity]" >
<xsl:variable name="tmp" > <xsl:variable name="tmp" >
<xsl:value-of select="./@message" /> <xsl:value-of select="./@message" />
</xsl:variable> </xsl:variable>
@ -91,10 +109,7 @@
</xsl:for-each> </xsl:for-each>
</table> </table>
</section> </xsl:element>
</body>
</document>
</xsl:template> </xsl:template>
<xsl:template match="text()" /> <xsl:template match="text()" />