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=
"//coverage[count(module) != 0]" />
6 <xsl:template match=
"coverage">
8 <table class=
"section-table" cellpadding=
"2" cellspacing=
"0" border=
"0" width=
"98%">
11 <td class=
"sectionheader" colspan=
"2">
12 <!-- Test Coverage Summary -->
14 NCover - Test Coverage:
16 "round((count(//coverage/module/method/seqpnt[@visitcount > 0]) div count(//coverage/module/method/seqpnt)) * 100)"/>%
21 <div style=
"color: maroon; font-size: 10pt; font-weight: bold;">
28 <xsl:apply-templates select=
"module"/>
35 <xsl:template match=
"module">
37 <xsl:apply-templates select=
"method[./seqpnt[@visitcount = 0]]"/>
40 <xsl:template match=
"method">
41 <div style=
"color: maroon; font-size: 10pt; font-weight: bold;">
42 <xsl:value-of select=
"@class"/>.
<xsl:value-of select=
"@name"/>
44 <table border=
"1" cellpadding=
"3" cellspacing=
"0" bordercolor=
"black" width=
"100%">
45 <xsl:apply-templates select=
"seqpnt[@visitcount = 0]"/>
50 <xsl:template match=
"seqpnt">
52 <xsl:if test=
"@line != 16707566">
54 <td bgcolor=
"#FFCCCC" width=
"15%">
55 Line:
<xsl:value-of select=
"@line"/>
57 <td bgcolor=
"#FFFFEE">
59 <!-- if this build is off the default CCNet working directory, shorten the path to show only the bits in version control. -->
60 <xsl:when test=
"contains(@document, '\WorkingDirectory\')">
61 <xsl:value-of select=
"substring-after(@document, '\WorkingDirectory\')"/>
64 <xsl:value-of select=
"@document"/>