Fix the build.
[castle.git] / Samples / MonoRail / MRCCnetDashboard / Dashboard.Web / xsl / vil.xsl
blob7752b2b27a2959f06af4873ab2a814fdbe1d9cf8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2004/07/xpath-functions" xmlns:xdt="http://www.w3.org/2004/07/xpath-datatypes">
4 <xsl:output method="html"/>
5 <xsl:variable name="VIL.root" select="//MetricReport"/>
6 <xsl:template match="/">
7 <html>
8 <head><title>Metrics Report</title></head>
9 <style>
10 .Title {font-family: Verdana; font-size: 14pt; color: black; font-weight: bold}
11 .ListItem {font-family: Verdana; font-size: 12pt; color: black; font-weight: bold}
12 .ColumnHeader {font-family: Verdana; font-size: 7pt; background-color:white; color: black}
13 .Information {font-family: Verdana; font-size: 10pt; color: black; font-weight: bold; text-align: left}
14 </style>
16 <body bgcolor="white" alink="Black" vlink="Black" link="Black">
17 <xsl:apply-templates select="$VIL.root"/>
18 </body>
19 </html>
20 </xsl:template>
22 <xsl:template match="MetricReport">
23 <div class="Title">Metric report</div>
24 <xsl:apply-templates select="Specification"/>
25 <xsl:apply-templates select="Results"/>
26 </xsl:template>
28 <xsl:template match="Specification">
29 <br/>
30 <xsl:apply-templates select="Assemblies"/>
31 </xsl:template>
33 <xsl:template match="Results">
34 <br/>
35 <xsl:apply-templates select="CodeElement"/>
36 </xsl:template>
38 <xsl:template match="CodeElement">
39 <div class="ListItem"><xsl:value-of select="@name"/></div>
40 <table border="1" cellspacing="0" width="100%">
41 <tr>
42 <xsl:for-each select="Metric">
43 <th class="ColumnHeader"><xsl:value-of select="@label"/></th>
44 </xsl:for-each>
45 </tr>
46 <tr>
47 <xsl:for-each select="Metric">
48 <td><xsl:value-of select="."/></td>
49 </xsl:for-each>
50 </tr>
51 </table>
52 </xsl:template>
55 <xsl:template match="Assemblies">
56 <table border="0">
57 <tr >
58 <th class="ColumnHeader" align="left">Assemblies:</th>
59 </tr>
60 <xsl:apply-templates select="Assembly"/>
61 </table>
62 </xsl:template>
64 <xsl:template match="Assembly">
65 <tr>
66 <td><xsl:value-of select="."/></td>
67 </tr>
68 </xsl:template>
70 </xsl:stylesheet>