1 | <?xml version="1.0"?>
|
---|
2 | <!--
|
---|
3 |
|
---|
4 | This file is part of IcedTea.
|
---|
5 |
|
---|
6 | IcedTea is free software; you can redistribute it and/or modify
|
---|
7 | it under the terms of the GNU General Public License as published by
|
---|
8 | the Free Software Foundation; either version 2, or (at your option)
|
---|
9 | any later version.
|
---|
10 |
|
---|
11 | IcedTea is distributed in the hope that it will be useful, but
|
---|
12 | WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | General Public License for more details.
|
---|
15 |
|
---|
16 | You should have received a copy of the GNU General Public License
|
---|
17 | along with IcedTea; see the file COPYING. If not, write to the
|
---|
18 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
---|
19 | 02110-1301 USA.
|
---|
20 |
|
---|
21 | Linking this library statically or dynamically with other modules is
|
---|
22 | making a combined work based on this library. Thus, the terms and
|
---|
23 | conditions of the GNU General Public License cover the whole
|
---|
24 | combination.
|
---|
25 |
|
---|
26 | As a special exception, the copyright holders of this library give you
|
---|
27 | permission to link this library with independent modules to produce an
|
---|
28 | executable, regardless of the license terms of these independent
|
---|
29 | modules, and to copy and distribute the resulting executable under
|
---|
30 | terms of your choice, provided that you also meet, for each linked
|
---|
31 | independent module, the terms and conditions of the license of that
|
---|
32 | module. An independent module is a module which is not derived from
|
---|
33 | or based on this library. If you modify this library, you may extend
|
---|
34 | this exception to your version of the library, but you are not
|
---|
35 | obligated to do so. If you do not wish to do so, delete this
|
---|
36 | exception statement from your version.
|
---|
37 |
|
---|
38 | -->
|
---|
39 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
---|
40 | <xsl:template match="/">
|
---|
41 | <html>
|
---|
42 | <head>
|
---|
43 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
---|
44 | <script src="report-styles/index.js"/>
|
---|
45 | <link href="report-styles/output.css" rel="stylesheet" type="text/css"/>
|
---|
46 | </head>
|
---|
47 | <body onload="setClassDisplay("fulltrace","none");setClassDisplay("stamp","none");setClassDisplay("output","none");openAnchor();">
|
---|
48 | <div id="wholePage">
|
---|
49 | <button onclick="showAllLogs()">show all</button>
|
---|
50 | <button onclick="setClassDisplay('output','none')">hide all</button>
|
---|
51 | <button onclick="showAllLogs()">show all logs</button>
|
---|
52 | <button onclick="setClassDisplay('output','none')">hide all logs</button>
|
---|
53 | <button onclick="setClassDisplay('method','block')">show all methods</button>
|
---|
54 | <button onclick="setClassDisplay('method','none')">hide all methods</button>
|
---|
55 | <xsl:for-each select="/logs/classlog">
|
---|
56 | <div class="classa">
|
---|
57 | <xsl:attribute name="id">
|
---|
58 | <xsl:value-of select="@className"/>
|
---|
59 | </xsl:attribute>
|
---|
60 | <h1>
|
---|
61 | <a>
|
---|
62 | <xsl:attribute name="name">
|
---|
63 | <xsl:value-of select="@className"/>
|
---|
64 | </xsl:attribute>
|
---|
65 | </a>
|
---|
66 | <xsl:value-of select="@className"/>
|
---|
67 | </h1>
|
---|
68 | <button><xsl:attribute name="onclick">
|
---|
69 | showhideMethods('<xsl:value-of select="@className"/>','none')
|
---|
70 | </xsl:attribute>
|
---|
71 | hide methods</button>
|
---|
72 | <button><xsl:attribute name="onclick">
|
---|
73 | showhideMethods('<xsl:value-of select="@className"/>','block')
|
---|
74 | </xsl:attribute>
|
---|
75 | show methods</button>
|
---|
76 | <xsl:for-each select="testLog">
|
---|
77 | <div class="method">
|
---|
78 | <xsl:attribute name="id">
|
---|
79 | <xsl:value-of select="@fullId"/>
|
---|
80 | </xsl:attribute>
|
---|
81 | <h2>
|
---|
82 | <a>
|
---|
83 | <xsl:attribute name="name">
|
---|
84 | <xsl:value-of select="@fullId"/>
|
---|
85 | </xsl:attribute>
|
---|
86 | <xsl:value-of select="@testMethod"/>
|
---|
87 | </a>
|
---|
88 | </h2>
|
---|
89 | <button><xsl:attribute name="onclick">
|
---|
90 | negateIdDisplayInline('<xsl:value-of select="@fullId"/>.out');
|
---|
91 | recalcLogsWidth('<xsl:value-of select="@fullId"/>');
|
---|
92 | </xsl:attribute>
|
---|
93 | show/hide stdout</button>
|
---|
94 | <button><xsl:attribute name="onclick">
|
---|
95 | negateIdDisplayInline('<xsl:value-of select="@fullId"/>.err');
|
---|
96 | recalcLogsWidth('<xsl:value-of select="@fullId"/>');
|
---|
97 | </xsl:attribute>
|
---|
98 | show/hide stderr</button>
|
---|
99 | <button><xsl:attribute name="onclick">
|
---|
100 | negateIdDisplayInline('<xsl:value-of select="@fullId"/>.all');
|
---|
101 | recalcLogsWidth('<xsl:value-of select="@fullId"/>');
|
---|
102 | </xsl:attribute>
|
---|
103 | show/hide alllog</button>
|
---|
104 | <button><xsl:attribute name="onclick">
|
---|
105 | negateClassBlocDisplayIn('<xsl:value-of select="@fullId"/>','fulltrace');
|
---|
106 | </xsl:attribute>
|
---|
107 | show/hide fulltraces</button>
|
---|
108 | <button><xsl:attribute name="onclick">
|
---|
109 | negateClassBlocDisplayIn('<xsl:value-of select="@fullId"/>','stamp');
|
---|
110 | </xsl:attribute>
|
---|
111 | show/hide stamps</button>
|
---|
112 | <div class="space-line">
|
---|
113 | <!-- -->
|
---|
114 | </div>
|
---|
115 | <xsl:for-each select="log">
|
---|
116 | <div class="output">
|
---|
117 | <xsl:attribute name="id"><xsl:value-of select="../@fullId"/>.<xsl:value-of select="@id"/></xsl:attribute>
|
---|
118 | <h3>
|
---|
119 | <xsl:value-of select="@id"/>
|
---|
120 | </h3>
|
---|
121 | <xsl:for-each select="item">
|
---|
122 | <div class="item">
|
---|
123 | <xsl:attribute name="id"><xsl:value-of select="../../@fullId"/>.<xsl:value-of select="../@id"/>.<xsl:value-of select="@id"/></xsl:attribute>
|
---|
124 | <div class="stamp"><xsl:value-of select="stamp"/></div>
|
---|
125 | <div class="fulltrace">
|
---|
126 | <pre>
|
---|
127 | <xsl:value-of select="fulltrace"/>
|
---|
128 | </pre>
|
---|
129 | </div>
|
---|
130 | <pre>
|
---|
131 | <xsl:value-of select="text"/>
|
---|
132 | </pre>
|
---|
133 | <!--item-->
|
---|
134 | </div>
|
---|
135 | </xsl:for-each>
|
---|
136 | <!--output-->
|
---|
137 | </div>
|
---|
138 | </xsl:for-each>
|
---|
139 | <div class="space-line">
|
---|
140 | <!-- -->
|
---|
141 | </div>
|
---|
142 | <!--method-->
|
---|
143 | </div>
|
---|
144 | </xsl:for-each>
|
---|
145 | <!--classa-->
|
---|
146 | </div>
|
---|
147 | </xsl:for-each>
|
---|
148 | <!--wholePage-->
|
---|
149 | </div>
|
---|
150 | </body>
|
---|
151 | </html>
|
---|
152 | </xsl:template>
|
---|
153 | </xsl:stylesheet>
|
---|