fixed compiler crash when passing an empty record as a function parameter (bug 498337)
[deliverable/titan.core.git] / compiler2 / tcov.xsl
CommitLineData
970ed795
EL
1<?xml version="1.0"?>
2<!--
d44e3c4f 3 Copyright (c) 2000-2016 Ericsson Telecom AB
4 All rights reserved. This program and the accompanying materials
5 are made available under the terms of the Eclipse Public License v1.0
6 which accompanies this distribution, and is available at
7 http://www.eclipse.org/legal/epl-v10.html
8
9 Contributors:
10 Balasko, Jeno
11 Kovacs, Ferenc
970ed795
EL
12-->
13<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14 xmlns="http://www.w3.org/1999/xhtml">
15<xsl:output method="html" />
16<xsl:template match="titan_coverage">
17 <html>
18 <head>
19 <title>RAW Coverage Data</title>
20 <style type="text/css">
21 body, td {
22 font-family: Verdana, Cursor;
23 font-size: 12px;
24 font-weight: normal;
25 }
26 table {
27 border-spacing: 4px 4px;
28 }
29 table td {
30 padding: 4px 2px 4px 2px;
31 text-align: center;
32 }
33 table th {
34 background-color: #c0c0c0;
35 }
36 </style>
37 </head>
38 <body>
39 <h1>RAW Coverage Data</h1>
40 <xsl:apply-templates select="version" />
41 <xsl:apply-templates select="component" />
42 <xsl:apply-templates select="files" />
43 </body>
44 </html>
45</xsl:template>
46
47<xsl:template match="version">
48 <h2>Version Information</h2>
49 Version Major: <xsl:value-of select="@major" /><br />
50 Version Minor: <xsl:value-of select="@minor" />
51</xsl:template>
52
53<xsl:template match="component">
54 <h2>Component Information</h2>
55 Component Name: <xsl:value-of select="@name" /><br />
56 Component Id: <xsl:value-of select="@name" />
57</xsl:template>
58
59<xsl:template match="files">
60 <h2>Coverage Functions Information</h2>
61 <table border="1" width="60%">
62 <th>Path</th><th>Line #</th><th>Count</th>
63 <xsl:for-each select="file">
64 <xsl:variable name="file" select="position()" />
65 <xsl:for-each select="functions">
66 <xsl:for-each select="function">
67 <tr>
68 <td><xsl:value-of select="../../@path" /></td>
69 <td><xsl:value-of select="@name" /></td>
70 <td><xsl:value-of select="@count" /></td>
71 </tr>
72 </xsl:for-each>
73 </xsl:for-each>
74 </xsl:for-each>
75 </table>
76 <h2>Coverage Lines Information</h2>
77 <table border="1" width="60%">
78 <th>Path</th><th>Line #</th><th>Count</th>
79 <xsl:for-each select="file">
80 <xsl:variable name="file" select="position()" />
81 <xsl:for-each select="lines">
82 <xsl:for-each select="line">
83 <tr>
84 <td><xsl:value-of select="../../@path" /></td>
85 <td><xsl:value-of select="@no" /></td>
86 <td><xsl:value-of select="@count" /></td>
87 </tr>
88 </xsl:for-each>
89 </xsl:for-each>
90 </xsl:for-each>
91 </table>
92</xsl:template>
93
94</xsl:stylesheet>
This page took 0.028058 seconds and 5 git commands to generate.