source: trunk/icedtea-web/tests/report-styles/logs.xsl

Last change on this file was 418, checked in by dmik, 13 years ago

Merge icedtea-web v1.3 to trunk.

  • Property svn:eol-style set to native
File size: 6.8 KB
Line 
1<?xml version="1.0"?>
2<!--
3
4This file is part of IcedTea.
5
6IcedTea is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11IcedTea is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with IcedTea; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
1902110-1301 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception 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(&quot;fulltrace&quot;,&quot;none&quot;);setClassDisplay(&quot;stamp&quot;,&quot;none&quot;);setClassDisplay(&quot;output&quot;,&quot;none&quot;);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>
71hide methods</button>
72 <button><xsl:attribute name="onclick">
73 showhideMethods('<xsl:value-of select="@className"/>','block')
74 </xsl:attribute>
75show 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>
93show/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>
98show/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>
103show/hide alllog</button>
104 <button><xsl:attribute name="onclick">
105 negateClassBlocDisplayIn('<xsl:value-of select="@fullId"/>','fulltrace');
106 </xsl:attribute>
107show/hide fulltraces</button>
108 <button><xsl:attribute name="onclick">
109 negateClassBlocDisplayIn('<xsl:value-of select="@fullId"/>','stamp');
110 </xsl:attribute>
111show/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>
Note: See TracBrowser for help on using the repository browser.