0
|
1 |
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0"
|
|
2 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
3 |
xmlns:lxslt="http://xml.apache.org/xslt">
|
|
4 |
|
|
5 |
<!--
|
|
6 |
*******************************************************************************
|
2
|
7 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
0
|
8 |
* All rights reserved.
|
|
9 |
* This component and the accompanying materials are made available
|
2
|
10 |
* under the terms of "Eclipse Public License v1.0"
|
0
|
11 |
* which accompanies this distribution, and is available
|
2
|
12 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
0
|
13 |
*
|
|
14 |
* Initial Contributors:
|
|
15 |
* Nokia Corporation - initial contribution.
|
|
16 |
*
|
|
17 |
*******************************************************************************
|
2
|
18 |
-->
|
0
|
19 |
|
|
20 |
<xsl:template match="/">
|
|
21 |
<html>
|
|
22 |
<head>
|
|
23 |
|
|
24 |
<title>
|
|
25 |
<xsl:value-of select="report/isUsedByData/component/@name"/> is used by;
|
|
26 |
SDK Name: <xsl:value-of select="report/info/sdk/@name"/>
|
|
27 |
Target: <xsl:value-of select="report/info/sdk/@target"/>
|
|
28 |
Build: <xsl:value-of select="report/info/sdk/@build"/>
|
|
29 |
</title>
|
|
30 |
|
|
31 |
|
|
32 |
<!--
|
|
33 |
*******************************************************************************
|
|
34 |
*
|
|
35 |
* Styles
|
|
36 |
*
|
|
37 |
*******************************************************************************
|
|
38 |
-->
|
|
39 |
|
|
40 |
<style type="text/css">
|
|
41 |
|
|
42 |
body {
|
|
43 |
background-color: white;
|
|
44 |
font-family: Verdana;
|
|
45 |
font-size: 10px;
|
|
46 |
}
|
|
47 |
p {
|
|
48 |
font-family="Verdana";
|
|
49 |
font-size: 10px;
|
|
50 |
}
|
|
51 |
p.right {
|
|
52 |
font-family="Verdana";
|
|
53 |
font-size: 10px;
|
|
54 |
text-align: right;
|
|
55 |
}
|
|
56 |
td {
|
|
57 |
font-family="Verdana";
|
|
58 |
font-size: 10px;
|
|
59 |
text-align: left;
|
|
60 |
}
|
|
61 |
td.right {
|
|
62 |
font-family="Verdana";
|
|
63 |
font-size: 10px;
|
|
64 |
text-align: right;
|
|
65 |
}
|
|
66 |
|
|
67 |
th {
|
|
68 |
font-family="Verdana";
|
|
69 |
font-size: 10px;
|
|
70 |
font-weight: bold;
|
|
71 |
text-align: left;
|
|
72 |
}
|
|
73 |
th.properties {
|
|
74 |
font-family="Verdana";
|
|
75 |
font-size: 10px;
|
|
76 |
font-weight: bold;
|
|
77 |
text-align: left;
|
|
78 |
width: 90px;
|
|
79 |
}
|
|
80 |
|
|
81 |
th.isUsedBy {
|
|
82 |
font-family="Verdana";
|
|
83 |
font-size: 10px;
|
|
84 |
font-weight: bold;
|
|
85 |
text-align: left;
|
|
86 |
}
|
|
87 |
th.isUsedBySorted {
|
|
88 |
font-family="Verdana";
|
|
89 |
font-size: 10px;
|
|
90 |
font-weight: bold;
|
|
91 |
text-align: left;
|
|
92 |
background-color: silver;
|
|
93 |
}
|
|
94 |
|
|
95 |
caption {
|
|
96 |
font-family="Verdana";
|
|
97 |
font-size: 10px;
|
|
98 |
font-weight: normal;
|
|
99 |
font-style: italic;
|
|
100 |
text-align: left;
|
|
101 |
|
|
102 |
}
|
|
103 |
dt {
|
|
104 |
font-family="Verdana";
|
|
105 |
font-size: 10px;
|
|
106 |
font-weight: normal
|
|
107 |
text-align: left;
|
|
108 |
}
|
|
109 |
|
|
110 |
h1 {
|
|
111 |
font-family="Verdana";
|
|
112 |
font-size: 18px;
|
|
113 |
}
|
|
114 |
h2 {
|
|
115 |
font-family="Verdana";
|
|
116 |
font-size: 16px;
|
|
117 |
}
|
|
118 |
h3 {
|
|
119 |
font-family="Verdana";
|
|
120 |
font-size: 14px;
|
|
121 |
}
|
|
122 |
h4 {
|
|
123 |
font-family="Verdana";
|
|
124 |
font-size: 12px;
|
|
125 |
}
|
|
126 |
h5 {
|
|
127 |
font-family="Verdana";
|
|
128 |
font-size: 11px;
|
|
129 |
}
|
|
130 |
|
|
131 |
|
|
132 |
|
|
133 |
</style>
|
|
134 |
|
|
135 |
|
|
136 |
</head>
|
|
137 |
<body>
|
|
138 |
|
|
139 |
|
|
140 |
<!--
|
|
141 |
*******************************************************************************
|
|
142 |
*
|
|
143 |
* Report information "Header"
|
|
144 |
*
|
|
145 |
*******************************************************************************
|
|
146 |
-->
|
|
147 |
|
|
148 |
<a name="top"></a>
|
|
149 |
|
|
150 |
<h2>Report information</h2>
|
|
151 |
|
|
152 |
<table border="0" cellspacing="1" cellpadding="3">
|
|
153 |
<tr><th>SDK Name </th><td> <xsl:value-of select="report/info/sdk/@name"/></td></tr>
|
|
154 |
<tr><th>Target </th><td> <xsl:value-of select="report/info/sdk/@target"/></td></tr>
|
|
155 |
<tr><th>Build </th><td> <xsl:value-of select="report/info/sdk/@build"/></td></tr>
|
|
156 |
<tr><th>Component </th><td> <xsl:value-of select="report/isUsedByData/component/@name"/></td></tr>
|
|
157 |
</table>
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
<hr></hr>
|
|
162 |
|
|
163 |
<h2><xsl:value-of select="report/isUsedByData/component/@name"/> is used by</h2>
|
|
164 |
|
|
165 |
<!--
|
|
166 |
*******************************************************************************
|
|
167 |
*
|
|
168 |
* Report information "Header"
|
|
169 |
*
|
|
170 |
*******************************************************************************
|
|
171 |
-->
|
|
172 |
|
|
173 |
<xsl:variable name="sortCriteria">
|
|
174 |
<xsl:value-of select="report/isUsedByData/component/@sortCriteria"/>
|
|
175 |
</xsl:variable>
|
|
176 |
|
|
177 |
|
|
178 |
<table border="1" cellspacing="0" cellpadding="0" width="100%">
|
|
179 |
<tr>
|
|
180 |
|
|
181 |
<!--
|
|
182 |
public static final int CRITERIA_NAME = 1;
|
|
183 |
public static final int CRITERIA_BIN_FORMAT = 2;
|
|
184 |
public static final int CRITERIA_UID1 = 3;
|
|
185 |
public static final int CRITERIA_UID2 = 4;
|
|
186 |
public static final int CRITERIA_UID3 = 5;
|
|
187 |
public static final int CRITERIA_SECURE_ID = 6;
|
|
188 |
public static final int CRITERIA_VENDOR_ID = 7;
|
|
189 |
public static final int CRITERIA_MIN_HEAP = 8;
|
|
190 |
public static final int CRITERIA_MAX_HEAP = 9;
|
|
191 |
public static final int CRITERIA_STACK_SIZE = 10;
|
|
192 |
-->
|
|
193 |
|
|
194 |
<xsl:choose>
|
|
195 |
<xsl:when test="$sortCriteria='1'">
|
|
196 |
<th class="isUsedBySorted">Filename</th>
|
|
197 |
</xsl:when>
|
|
198 |
<xsl:otherwise>
|
|
199 |
<th class="isUsedBy">Filename</th>
|
|
200 |
</xsl:otherwise>
|
|
201 |
</xsl:choose>
|
|
202 |
|
|
203 |
<xsl:choose>
|
|
204 |
<xsl:when test="$sortCriteria='2'">
|
|
205 |
<th class="isUsedBySorted">Binary format</th>
|
|
206 |
</xsl:when>
|
|
207 |
<xsl:otherwise>
|
|
208 |
<th class="isUsedBy">Binary format</th>
|
|
209 |
</xsl:otherwise>
|
|
210 |
</xsl:choose>
|
|
211 |
|
|
212 |
<xsl:choose>
|
|
213 |
<xsl:when test="$sortCriteria='3'">
|
|
214 |
<th class="isUsedBySorted">UID1</th>
|
|
215 |
</xsl:when>
|
|
216 |
<xsl:otherwise>
|
|
217 |
<th class="isUsedBy">UID1</th>
|
|
218 |
</xsl:otherwise>
|
|
219 |
</xsl:choose>
|
|
220 |
|
|
221 |
<xsl:choose>
|
|
222 |
<xsl:when test="$sortCriteria='4'">
|
|
223 |
<th class="isUsedBySorted">UID2</th>
|
|
224 |
</xsl:when>
|
|
225 |
<xsl:otherwise>
|
|
226 |
<th class="isUsedBy">UID2</th>
|
|
227 |
</xsl:otherwise>
|
|
228 |
</xsl:choose>
|
|
229 |
|
|
230 |
<xsl:choose>
|
|
231 |
<xsl:when test="$sortCriteria='5'">
|
|
232 |
<th class="isUsedBySorted">UID3</th>
|
|
233 |
</xsl:when>
|
|
234 |
<xsl:otherwise>
|
|
235 |
<th class="isUsedBy">UID3</th>
|
|
236 |
</xsl:otherwise>
|
|
237 |
</xsl:choose>
|
|
238 |
|
|
239 |
<xsl:choose>
|
|
240 |
<xsl:when test="$sortCriteria='6'">
|
|
241 |
<th class="isUsedBySorted">Secure ID</th>
|
|
242 |
</xsl:when>
|
|
243 |
<xsl:otherwise>
|
|
244 |
<th class="isUsedBy">Secure ID</th>
|
|
245 |
</xsl:otherwise>
|
|
246 |
</xsl:choose>
|
|
247 |
|
|
248 |
<xsl:choose>
|
|
249 |
<xsl:when test="$sortCriteria='7'">
|
|
250 |
<th class="isUsedBySorted">Vendor ID</th>
|
|
251 |
</xsl:when>
|
|
252 |
<xsl:otherwise>
|
|
253 |
<th class="isUsedBy">Vendor ID</th>
|
|
254 |
</xsl:otherwise>
|
|
255 |
</xsl:choose>
|
|
256 |
|
|
257 |
<xsl:choose>
|
|
258 |
<xsl:when test="$sortCriteria='8'">
|
|
259 |
<th class="isUsedBySorted">Min Heap Size</th>
|
|
260 |
</xsl:when>
|
|
261 |
<xsl:otherwise>
|
|
262 |
<th class="isUsedBy">Min Heap Size</th>
|
|
263 |
</xsl:otherwise>
|
|
264 |
</xsl:choose>
|
|
265 |
|
|
266 |
<xsl:choose>
|
|
267 |
<xsl:when test="$sortCriteria='9'">
|
|
268 |
<th class="isUsedBySorted">Max Heap Size</th>
|
|
269 |
</xsl:when>
|
|
270 |
<xsl:otherwise>
|
|
271 |
<th class="isUsedBy">Max Heap Size</th>
|
|
272 |
</xsl:otherwise>
|
|
273 |
</xsl:choose>
|
|
274 |
|
|
275 |
<xsl:choose>
|
|
276 |
<xsl:when test="$sortCriteria='10'">
|
|
277 |
<th class="isUsedBySorted">Stack Size</th>
|
|
278 |
</xsl:when>
|
|
279 |
<xsl:otherwise>
|
|
280 |
<th class="isUsedBy">Stack Size</th>
|
|
281 |
</xsl:otherwise>
|
|
282 |
</xsl:choose>
|
|
283 |
|
|
284 |
</tr>
|
|
285 |
|
|
286 |
<xsl:for-each select="report/isUsedByData/component/isUsedBy">
|
|
287 |
<tr>
|
|
288 |
<td><xsl:value-of select="./Filename"/></td>
|
|
289 |
<td><xsl:value-of select="./Binary_format"/></td>
|
|
290 |
<td><xsl:value-of select="./UID1"/></td>
|
|
291 |
<td><xsl:value-of select="./UID2"/></td>
|
|
292 |
<td><xsl:value-of select="./UID3"/></td>
|
|
293 |
<td><xsl:value-of select="./Secure_ID"/></td>
|
|
294 |
<td><xsl:value-of select="./Vendor_ID"/></td>
|
|
295 |
<td><xsl:value-of select="./Min_Heap_Size"/></td>
|
|
296 |
<td><xsl:value-of select="./Max_Heap_Size"/></td>
|
|
297 |
<td><xsl:value-of select="./Stack_Size"/></td>
|
|
298 |
</tr>
|
|
299 |
</xsl:for-each>
|
|
300 |
|
|
301 |
|
|
302 |
</table>
|
|
303 |
|
|
304 |
</body>
|
|
305 |
</html>
|
|
306 |
|
|
307 |
</xsl:template>
|
|
308 |
|
|
309 |
</xsl:stylesheet> |