2003-02-06 15:31:25 +00:00
<?xml version="1.0" encoding="UTF-8"?>
< xsl:stylesheet version = "1.0" xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" >
2003-09-24 18:46:59 +00:00
< xsl:variable name = "cvsweb" > http://doc.ece.uci.edu/cvs/viewcvs.cgi/Zen/packages/src/< / xsl:variable >
2003-02-06 15:31:25 +00:00
< xsl:template match = "pmd" >
< html >
< head >
2003-09-24 18:46:59 +00:00
< title > PMD Report< / title >
2003-02-06 15:31:25 +00:00
< style type = "text/css" >
2003-09-24 18:46:59 +00:00
body { margin-left: 2%; margin-right: 2%; font:normal verdana,arial,helvetica; color:#000000; }
2003-02-06 19:32:00 +00:00
table.details tr th { font-weight: bold; text-align:left; background:#a6caf0; }
table.details tr td { background:#eeeee0; }
2005-02-16 14:10:10 +00:00
table.summary tr th { font-weight: bold; text-align:left; background:#a6caf0; }
table.summary tr td { background:#eeeee0; text-align:center;}
.p1 { background:#FF9999; }
.p2 { background:#FFCC66; }
.p3 { background:#FFFF99; }
.p4 { background:#99FF99; }
.p5 { background:#9999FF; }
2003-02-06 15:31:25 +00:00
< / style >
< / head >
< body >
2003-09-24 18:46:59 +00:00
< H1 > PMD Report< / H1 >
2003-02-06 15:31:25 +00:00
< hr / >
2005-02-16 14:10:10 +00:00
< h2 > Summary< / h2 >
< table border = "0" class = "summary" >
< tr >
< th > Files< / th >
< th > Total< / th >
< th > Priority 1< / th >
< th > Priority 2< / th >
< th > Priority 3< / th >
< th > Priority 4< / th >
< th > Priority 5< / th >
< / tr >
< tr >
< td > < xsl:value-of select = "count(//file)" / > < / td >
< td > < xsl:value-of select = "count(//violation)" / > < / td >
< td > < div class = "p1" > < xsl:value-of select = "count(//violation[@priority = 1])" / > < / div > < / td >
< td > < div class = "p2" > < xsl:value-of select = "count(//violation[@priority = 2])" / > < / div > < / td >
< td > < div class = "p3" > < xsl:value-of select = "count(//violation[@priority = 3])" / > < / div > < / td >
< td > < div class = "p4" > < xsl:value-of select = "count(//violation[@priority = 4])" / > < / div > < / td >
< td > < div class = "p5" > < xsl:value-of select = "count(//violation[@priority = 5])" / > < / div > < / td >
< / tr >
< / table >
< hr / >
2003-02-06 15:31:25 +00:00
< xsl:for-each select = "file" >
< xsl:sort data-type = "number" order = "descending" select = "count(violation)" / >
2003-09-24 18:46:59 +00:00
< xsl:variable name = "filename" select = "@name" / >
< H3 > < xsl:value-of disable-output-escaping = "yes" select = "substring-before(translate(@name,'/','.'),'.java')" / > < / H3 >
2003-02-06 19:32:00 +00:00
< table border = "0" width = "100%" class = "details" >
< tr >
2007-06-26 22:42:28 +00:00
< th > Begin Line< / th >
2003-02-06 15:31:25 +00:00
< th align = "left" > Description< / th >
< / tr >
2003-09-24 18:46:59 +00:00
< xsl:for-each select = "violation" >
< tr >
2007-06-26 22:42:28 +00:00
< td style = "padding: 3px" align = "right" > < a > < xsl:attribute name = "href" > < xsl:value-of select = "$cvsweb" / > < xsl:value-of select = "$filename" / > ?annotate=HEAD#< xsl:value-of disable-output-escaping = "yes" select = "@beginline" / > < / xsl:attribute > < xsl:value-of disable-output-escaping = "yes" select = "@beginline" / > < / a > < / td >
2003-09-24 18:46:59 +00:00
< td style = "padding: 3px" align = "left" width = "100%" > < xsl:value-of disable-output-escaping = "yes" select = "." / > < / td >
< / tr >
< / xsl:for-each >
2003-02-06 15:31:25 +00:00
< / table >
2003-02-06 19:32:00 +00:00
< br / >
2003-02-06 15:31:25 +00:00
< / xsl:for-each >
2004-12-22 18:28:09 +00:00
< p > Generated by < a href = "http://pmd.sourceforge.net" > PMD < b > < xsl:value-of select = "//pmd/@version" / > < / b > < / a > on < xsl:value-of select = "//pmd/@timestamp" / > .< / p >
2003-02-06 15:31:25 +00:00
< / body >
< / html >
< / xsl:template >
< / xsl:stylesheet >