3 Copyright (c) 2000-2014 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
9 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10 xmlns="http://www.w3.org/1999/xhtml">
11 <xsl:output method="html" />
12 <xsl:template match="titan_coverage">
15 <title>RAW Coverage Data</title>
16 <style type="text/css">
18 font-family: Verdana, Cursor;
23 border-spacing: 4px 4px;
26 padding: 4px 2px 4px 2px;
30 background-color: #c0c0c0;
35 <h1>RAW Coverage Data</h1>
36 <xsl:apply-templates select="version" />
37 <xsl:apply-templates select="component" />
38 <xsl:apply-templates select="files" />
43 <xsl:template match="version">
44 <h2>Version Information</h2>
45 Version Major: <xsl:value-of select="@major" /><br />
46 Version Minor: <xsl:value-of select="@minor" />
49 <xsl:template match="component">
50 <h2>Component Information</h2>
51 Component Name: <xsl:value-of select="@name" /><br />
52 Component Id: <xsl:value-of select="@name" />
55 <xsl:template match="files">
56 <h2>Coverage Functions Information</h2>
57 <table border="1" width="60%">
58 <th>Path</th><th>Line #</th><th>Count</th>
59 <xsl:for-each select="file">
60 <xsl:variable name="file" select="position()" />
61 <xsl:for-each select="functions">
62 <xsl:for-each select="function">
64 <td><xsl:value-of select="../../@path" /></td>
65 <td><xsl:value-of select="@name" /></td>
66 <td><xsl:value-of select="@count" /></td>
72 <h2>Coverage Lines Information</h2>
73 <table border="1" width="60%">
74 <th>Path</th><th>Line #</th><th>Count</th>
75 <xsl:for-each select="file">
76 <xsl:variable name="file" select="position()" />
77 <xsl:for-each select="lines">
78 <xsl:for-each select="line">
80 <td><xsl:value-of select="../../@path" /></td>
81 <td><xsl:value-of select="@no" /></td>
82 <td><xsl:value-of select="@count" /></td>