Commit | Line | Data |
---|---|---|
970ed795 EL |
1 | <?xml version="1.0"?> |
2 | <!-- | |
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 | |
8 | --> | |
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"> | |
13 | <html> | |
14 | <head> | |
15 | <title>RAW Coverage Data</title> | |
16 | <style type="text/css"> | |
17 | body, td { | |
18 | font-family: Verdana, Cursor; | |
19 | font-size: 12px; | |
20 | font-weight: normal; | |
21 | } | |
22 | table { | |
23 | border-spacing: 4px 4px; | |
24 | } | |
25 | table td { | |
26 | padding: 4px 2px 4px 2px; | |
27 | text-align: center; | |
28 | } | |
29 | table th { | |
30 | background-color: #c0c0c0; | |
31 | } | |
32 | </style> | |
33 | </head> | |
34 | <body> | |
35 | <h1>RAW Coverage Data</h1> | |
36 | <xsl:apply-templates select="version" /> | |
37 | <xsl:apply-templates select="component" /> | |
38 | <xsl:apply-templates select="files" /> | |
39 | </body> | |
40 | </html> | |
41 | </xsl:template> | |
42 | ||
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" /> | |
47 | </xsl:template> | |
48 | ||
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" /> | |
53 | </xsl:template> | |
54 | ||
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"> | |
63 | <tr> | |
64 | <td><xsl:value-of select="../../@path" /></td> | |
65 | <td><xsl:value-of select="@name" /></td> | |
66 | <td><xsl:value-of select="@count" /></td> | |
67 | </tr> | |
68 | </xsl:for-each> | |
69 | </xsl:for-each> | |
70 | </xsl:for-each> | |
71 | </table> | |
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"> | |
79 | <tr> | |
80 | <td><xsl:value-of select="../../@path" /></td> | |
81 | <td><xsl:value-of select="@no" /></td> | |
82 | <td><xsl:value-of select="@count" /></td> | |
83 | </tr> | |
84 | </xsl:for-each> | |
85 | </xsl:for-each> | |
86 | </xsl:for-each> | |
87 | </table> | |
88 | </xsl:template> | |
89 | ||
90 | </xsl:stylesheet> |