Updates from Mats

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1405 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2003-02-06 19:32:00 +00:00
parent 5a58619686
commit 4aa3eae028

View File

@ -7,7 +7,10 @@
<head> <head>
<title>PMD report</title> <title>PMD report</title>
<style type="text/css"> <style type="text/css">
body { margin-left: 2%; margin-right: 2% } body { margin-left: 2%; margin-right: 2%; font:normal 68% verdana,arial,helvetica; color:#000000; }
table tr td, tr th { font-size: 68%; }
table.details tr th { font-weight: bold; text-align:left; background:#a6caf0; }
table.details tr td { background:#eeeee0; }
</style> </style>
</head> </head>
<body> <body>
@ -16,14 +19,14 @@
<xsl:for-each select="file"> <xsl:for-each select="file">
<xsl:sort data-type="number" order="descending" select="count(violation)"/> <xsl:sort data-type="number" order="descending" select="count(violation)"/>
<H3><xsl:value-of disable-output-escaping="yes" select="@name"/></H3> <H3><xsl:value-of disable-output-escaping="yes" select="@name"/></H3>
<table border="1" cellpadding="7" cellspacing="1" width="100%"> <table border="0" width="100%" class="details">
<tr bgcolor="#87CEEB"> <tr>
<th>Line</th> <th width="50">Line</th>
<th align="left">Description</th> <th align="left">Description</th>
</tr> </tr>
<xsl:apply-templates select="violation"/> <xsl:apply-templates select="violation"/>
</table> </table>
<br/><br/><br/> <br/>
</xsl:for-each> </xsl:for-each>
</body> </body>
</html> </html>
@ -31,8 +34,8 @@
<xsl:template match="violation"> <xsl:template match="violation">
<tr> <tr>
<th><xsl:value-of disable-output-escaping="yes" select="@line"/></th> <td><xsl:value-of disable-output-escaping="yes" select="@line"/></td>
<th align="left"><xsl:value-of disable-output-escaping="yes" select="."/></th> <td align="left"><xsl:value-of disable-output-escaping="yes" select="."/></td>
</tr> </tr>
</xsl:template> </xsl:template>