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=
"/">
8 <head><title>Metrics Report
</title></head>
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}
16 <body bgcolor=
"white" alink=
"Black" vlink=
"Black" link=
"Black">
17 <xsl:apply-templates select=
"$VIL.root"/>
22 <xsl:template match=
"MetricReport">
23 <div class=
"Title">Metric report
</div>
24 <xsl:apply-templates select=
"Specification"/>
25 <xsl:apply-templates select=
"Results"/>
28 <xsl:template match=
"Specification">
30 <xsl:apply-templates select=
"Assemblies"/>
33 <xsl:template match=
"Results">
35 <xsl:apply-templates select=
"CodeElement"/>
38 <xsl:template match=
"CodeElement">
39 <div class=
"ListItem"><xsl:value-of select=
"@name"/></div>
40 <table border=
"1" cellspacing=
"0" width=
"100%">
42 <xsl:for-each select=
"Metric">
43 <th class=
"ColumnHeader"><xsl:value-of select=
"@label"/></th>
47 <xsl:for-each select=
"Metric">
48 <td><xsl:value-of select=
"."/></td>
55 <xsl:template match=
"Assemblies">
58 <th class=
"ColumnHeader" align=
"left">Assemblies:
</th>
60 <xsl:apply-templates select=
"Assembly"/>
64 <xsl:template match=
"Assembly">
66 <td><xsl:value-of select=
"."/></td>