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
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">
19 <title>RAW Coverage Data</title>
20 <style type="text/css">
22 font-family: Verdana, Cursor;
27 border-spacing: 4px 4px;
30 padding: 4px 2px 4px 2px;
34 background-color: #c0c0c0;
39 <h1>RAW Coverage Data</h1>
40 <xsl:apply-templates select="version" />
41 <xsl:apply-templates select="component" />
42 <xsl:apply-templates select="files" />
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" />
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" />
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">
68 <td><xsl:value-of select="../../@path" /></td>
69 <td><xsl:value-of select="@name" /></td>
70 <td><xsl:value-of select="@count" /></td>
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">
84 <td><xsl:value-of select="../../@path" /></td>
85 <td><xsl:value-of select="@no" /></td>
86 <td><xsl:value-of select="@count" /></td>