Fixing an issue with output parameters that are of type IntPtr
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / emma.xsl
blobf0ce20e09890f28d2f3fd7d51bf80f16efb8ad7b
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 != '']" />
5 </xsl:template>
6 <xsl:template match="all">
8 <table class="section-table" cellpadding="2" cellspacing="0" border="0" width="98%">
10 <tr>
11 <td class="unittests-sectionheader" colspan="2">
12 <!-- Test Coverage Summary -->
14 EMMA - Test Coverage:
15 <xsl:value-of select="substring-before(./coverage/@value, '%')"/>%
16 </td>
17 </tr>
18 <tr>
19 <td>
20 <div style="color: maroon; font-size: 10pt; font-weight: bold;">
21 Package breakdown:
22 </div>
23 </td>
24 </tr>
25 <tr>
26 <td>
27 <br />
28 <table border="1" cellpadding="3" cellspacing="0" bordercolor="black" width="100%">
30 <tr>
31 <td>Line Coverage %</td>
32 <td>Package</td>
33 </tr>
35 <xsl:apply-templates select="package/coverage[@type = 'line, %']">
36 <xsl:sort data-type="number" select="number(substring-before(@value, '%'))"/>
37 </xsl:apply-templates>
39 </table>
40 </td>
41 </tr>
43 </table>
44 </xsl:template>
46 <xsl:template match="coverage">
47 <tr>
49 <xsl:choose>
50 <xsl:when test="substring-before(@value, '%') &lt; 80">
51 <td bgcolor="#FFCCCC" width="20%">
52 <xsl:value-of select="substring-before(@value, '%')"/>
53 </td>
54 </xsl:when>
55 <xsl:otherwise>
56 <td bgcolor="#ccffcc" width="20%">
57 <xsl:value-of select="substring-before(@value, '%')"/>
58 </td>
59 </xsl:otherwise>
60 </xsl:choose>
62 <td bgcolor="#FFFFEE">
63 <xsl:value-of select="../@name"/>
64 </td>
66 </tr>
67 </xsl:template>
68 </xsl:stylesheet>