1 <xsl:stylesheet version=
"1.0" xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" xmlns=
"http://www.w3.org/TR/xhtml1/strict">
2 <xsl:output method=
"html"/>
3 <xsl:template match=
"/">
4 <xsl:apply-templates select=
"//report/data/all[./coverage/@value != '']" />
6 <xsl:template match=
"all">
8 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
11 <td class=
"unittests-sectionheader" colspan=
"2">
12 <!-- Test Coverage Summary -->
15 <xsl:value-of select=
"substring-before(./coverage/@value, '%')"/>%
20 <div style=
"color: maroon; font-size: 10pt; font-weight: bold;">
28 <table border=
"1" cellpadding=
"3" cellspacing=
"0" bordercolor=
"black" width=
"100%">
31 <td>Line Coverage %
</td>
35 <xsl:apply-templates select=
"package/coverage[@type = 'line, %']">
36 <xsl:sort data-type=
"number" select=
"number(substring-before(@value, '%'))"/>
37 </xsl:apply-templates>
46 <xsl:template match=
"coverage">
50 <xsl:when test=
"substring-before(@value, '%') < 80">
51 <td bgcolor=
"#FFCCCC" width=
"20%">
52 <xsl:value-of select=
"substring-before(@value, '%')"/>
56 <td bgcolor=
"#ccffcc" width=
"20%">
57 <xsl:value-of select=
"substring-before(@value, '%')"/>
62 <td bgcolor=
"#FFFFEE">
63 <xsl:value-of select=
"../@name"/>