Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / NCover.xsl
blob1ff949cb64efc33ebd1dfc513ebd24d34397d4be
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]" />
5 </xsl:template>
6 <xsl:template match="coverage">
8 <table class="section-table" cellpadding="2" cellspacing="0" border="0" width="98%">
10 <tr>
11 <td class="sectionheader" colspan="2">
12 <!-- Test Coverage Summary -->
14 NCover - Test Coverage:
15 <xsl:value-of select=
16 "round((count(//coverage/module/method/seqpnt[@visitcount > 0]) div count(//coverage/module/method/seqpnt)) * 100)"/>%
17 </td>
18 </tr>
19 <tr>
20 <td>
21 <div style="color: maroon; font-size: 10pt; font-weight: bold;">
22 Untested Code:
23 </div>
24 </td>
25 </tr>
26 <tr>
27 <td>
28 <xsl:apply-templates select="module"/>
29 </td>
30 </tr>
32 </table>
33 </xsl:template>
35 <xsl:template match="module">
36 <br />
37 <xsl:apply-templates select="method[./seqpnt[@visitcount = 0]]"/>
38 </xsl:template>
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"/>
43 </div>
44 <table border="1" cellpadding="3" cellspacing="0" bordercolor="black" width="100%">
45 <xsl:apply-templates select="seqpnt[@visitcount = 0]"/>
46 </table>
47 <p/>
48 </xsl:template>
50 <xsl:template match="seqpnt">
51 <tr>
52 <xsl:if test="@line != 16707566">
54 <td bgcolor="#FFCCCC" width="15%">
55 Line: <xsl:value-of select="@line"/>
56 </td>
57 <td bgcolor="#FFFFEE">
58 <xsl:choose>
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\')"/>
62 </xsl:when>
63 <xsl:otherwise>
64 <xsl:value-of select="@document"/>
65 </xsl:otherwise>
66 </xsl:choose>
67 </td>
68 </xsl:if>
69 </tr>
70 </xsl:template>
71 </xsl:stylesheet>