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 |
*******************************************************************************
|
|
18 |
-->
|
|
19 |
|
|
20 |
<xsl:template match="/">
|
|
21 |
<html>
|
|
22 |
<head>
|
|
23 |
|
|
24 |
<title>
|
|
25 |
SDK Name: <xsl:value-of select="report/info/sdk/@name"/>
|
|
26 |
Target: <xsl:value-of select="report/info/sdk/@target"/>
|
|
27 |
Build: <xsl:value-of select="report/info/sdk/@build"/>
|
|
28 |
Root component: <xsl:value-of select="report/components/rootComponent/@name"/>
|
|
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 |
</style>
|
|
133 |
|
|
134 |
|
|
135 |
|
|
136 |
|
|
137 |
</head>
|
|
138 |
<body>
|
|
139 |
|
|
140 |
|
|
141 |
<!--
|
|
142 |
*******************************************************************************
|
|
143 |
*
|
|
144 |
* Report information "Header"
|
|
145 |
*
|
|
146 |
*******************************************************************************
|
|
147 |
-->
|
|
148 |
|
|
149 |
<a name="top"></a>
|
|
150 |
|
|
151 |
<h2>Report information</h2>
|
|
152 |
|
|
153 |
<table border="0" cellspacing="1" cellpadding="3">
|
|
154 |
<tr><th>SDK Name </th><td> <xsl:value-of select="report/info/sdk/@name"/></td></tr>
|
|
155 |
<tr><th>Target </th><td> <xsl:value-of select="report/info/sdk/@target"/></td></tr>
|
|
156 |
<tr><th>Build </th><td> <xsl:value-of select="report/info/sdk/@build"/></td></tr>
|
|
157 |
<tr><th>Root component </th><td> <xsl:value-of select="report/components/rootComponent/@name"/></td></tr>
|
|
158 |
</table>
|
|
159 |
|
|
160 |
<hr></hr>
|
|
161 |
|
|
162 |
<!--
|
|
163 |
*******************************************************************************
|
|
164 |
*
|
|
165 |
* Table of contents
|
|
166 |
*
|
|
167 |
*******************************************************************************
|
|
168 |
-->
|
|
169 |
<h2>Table of contents</h2>
|
|
170 |
<dl>
|
|
171 |
<dd><b><a href="#components">Components</a></b></dd>
|
|
172 |
<dl>
|
|
173 |
<xsl:for-each select="report/components/rootComponent">
|
|
174 |
|
|
175 |
<!--
|
|
176 |
Calling templates for recursively tructure (nested looping)
|
|
177 |
@see </xsl:template> <xsl:template match="component"> part at end of file
|
|
178 |
-->
|
|
179 |
<xsl:apply-templates mode="TOC"/>
|
|
180 |
|
|
181 |
</xsl:for-each>
|
|
182 |
|
|
183 |
</dl>
|
|
184 |
<dd><b><a href="#properties">Properties</a></b></dd>
|
|
185 |
<dd><b><a href="#exportedFunctions">Exported functions</a></b></dd>
|
|
186 |
|
|
187 |
</dl>
|
|
188 |
|
|
189 |
|
|
190 |
|
|
191 |
<hr></hr>
|
|
192 |
|
|
193 |
<!--
|
|
194 |
*******************************************************************************
|
|
195 |
*
|
|
196 |
* Components
|
|
197 |
*
|
|
198 |
*******************************************************************************
|
|
199 |
-->
|
|
200 |
<a name="components"></a>
|
|
201 |
<h2>Components</h2>
|
|
202 |
<xsl:for-each select="report/components/rootComponent">
|
|
203 |
|
|
204 |
<!--
|
|
205 |
Calling templates for recursively tructure (nested looping)
|
|
206 |
@see </xsl:template> <xsl:template match="component"> part at end of file
|
|
207 |
-->
|
|
208 |
|
|
209 |
<xsl:apply-templates mode="COMPONENTS"/>
|
|
210 |
|
|
211 |
</xsl:for-each>
|
|
212 |
|
|
213 |
<hr></hr>
|
|
214 |
|
|
215 |
|
|
216 |
|
|
217 |
<!--
|
|
218 |
*******************************************************************************
|
|
219 |
*
|
|
220 |
* Part for properties
|
|
221 |
*
|
|
222 |
*******************************************************************************
|
|
223 |
-->
|
|
224 |
|
|
225 |
<hr></hr>
|
|
226 |
|
|
227 |
<a name="properties"></a>
|
|
228 |
<h2>Properties</h2>
|
|
229 |
|
|
230 |
<xsl:for-each select="report/properties/component">
|
|
231 |
|
|
232 |
<xsl:variable name="propertyName">
|
|
233 |
<xsl:value-of select="@name"/>
|
|
234 |
</xsl:variable>
|
|
235 |
|
|
236 |
|
|
237 |
<dl>
|
|
238 |
|
|
239 |
<dt>
|
|
240 |
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
|
241 |
<tr>
|
|
242 |
<td>
|
|
243 |
<!-- if component founds as parent in this report showing link to it -->
|
|
244 |
<xsl:choose>
|
|
245 |
<xsl:when test="@foundAsParent='true'">
|
|
246 |
<a href="#{$propertyName}"><xsl:value-of select="$propertyName"/> </a>
|
|
247 |
</xsl:when>
|
|
248 |
<!-- Otherwise showing only its name -->
|
|
249 |
<xsl:otherwise>
|
|
250 |
<xsl:value-of select="$propertyName"/>
|
|
251 |
</xsl:otherwise>
|
|
252 |
</xsl:choose>
|
|
253 |
|
|
254 |
|
|
255 |
<a name="property_{$propertyName}"></a>
|
|
256 |
<!-- Links to exported functions -->
|
|
257 |
  
|
|
258 |
<i><a href="#exportedFunction_{$propertyName}"><Exported functions></a></i>
|
|
259 |
|
|
260 |
</td>
|
|
261 |
<td class="right"><a href="#top">Top</a></td></tr>
|
|
262 |
</table>
|
|
263 |
</dt>
|
|
264 |
<dd>
|
|
265 |
<table border="1" cellspacing="0" cellpadding="0" width="400px">
|
|
266 |
<tr><th class="properties">Directory</th><td><xsl:value-of select="./directory"/></td></tr>
|
|
267 |
<tr><th class="properties">Filename</th><td><xsl:value-of select="./filename"/></td></tr>
|
|
268 |
<tr><th class="properties">BinaryFormat</th><td><xsl:value-of select="./binaryFormat"/></td></tr>
|
|
269 |
<tr><th class="properties">UID1</th><td><xsl:value-of select="./UID1"/></td></tr>
|
|
270 |
<tr><th class="properties">UID2</th><td><xsl:value-of select="./UID2"/></td></tr>
|
|
271 |
<tr><th class="properties">UID3</th><td><xsl:value-of select="./UID3"/></td></tr>
|
|
272 |
<tr><th class="properties">Secure ID</th><td><xsl:value-of select="./secureID"/></td></tr>
|
|
273 |
<tr><th class="properties">Vendor ID</th><td><xsl:value-of select="./vendorID"/></td></tr>
|
|
274 |
<tr><th class="properties">Capabilities</th><td><xsl:value-of select="./capabilities"/></td></tr>
|
|
275 |
<tr><th class="properties">Min Heap Size</th><td><xsl:value-of select="./minHeapSize"/></td></tr>
|
|
276 |
<tr><th class="properties">Max Heap Size</th><td><xsl:value-of select="./maxHeapSize"/></td></tr>
|
|
277 |
<tr><th class="properties">Stack Size</th><td><xsl:value-of select="./stackSize"/></td></tr>
|
|
278 |
<tr><th class="properties">Dll Ref Table Count</th><td><xsl:value-of select="./dllRefTableCount"/></td></tr>
|
|
279 |
</table>
|
|
280 |
</dd>
|
|
281 |
</dl>
|
|
282 |
|
|
283 |
</xsl:for-each> <!-- report/properties/component -->
|
|
284 |
|
|
285 |
|
|
286 |
<!--
|
|
287 |
*******************************************************************************
|
|
288 |
*
|
|
289 |
* Part for exported functions
|
|
290 |
*
|
|
291 |
*******************************************************************************
|
|
292 |
-->
|
|
293 |
|
|
294 |
<hr></hr>
|
|
295 |
<hr></hr>
|
|
296 |
|
|
297 |
<a name="exportedFunctions"></a>
|
|
298 |
<h2>Exported Functions</h2>
|
|
299 |
|
|
300 |
<xsl:for-each select="report/exportedFunctions/component">
|
|
301 |
|
|
302 |
<xsl:variable name="exporteFunctionName">
|
|
303 |
<xsl:value-of select="@name"/>
|
|
304 |
</xsl:variable>
|
|
305 |
|
|
306 |
<dl>
|
|
307 |
<!-- Header and anchor to this property -->
|
|
308 |
<dt>
|
|
309 |
<table border="0" cellspacing="0" cellpadding="0" width="100%">
|
|
310 |
<tr>
|
|
311 |
<td>
|
|
312 |
<!-- if component founds as parent in this report showing link to it -->
|
|
313 |
<xsl:choose>
|
|
314 |
<xsl:when test="@foundAsParent='true'">
|
|
315 |
<a href="#{$exporteFunctionName}"><xsl:value-of select="$exporteFunctionName"/> </a>
|
|
316 |
</xsl:when>
|
|
317 |
<!-- Otherwise showing only its name -->
|
|
318 |
<xsl:otherwise>
|
|
319 |
<xsl:value-of select="$exporteFunctionName"/>
|
|
320 |
</xsl:otherwise>
|
|
321 |
</xsl:choose>
|
|
322 |
|
|
323 |
<a name="exportedFunction_{$exporteFunctionName}"></a>
|
|
324 |
<!-- Links to properties -->
|
|
325 |
  
|
|
326 |
<i><a href="#property_{$exporteFunctionName}"><Properties></a></i>
|
|
327 |
|
|
328 |
</td>
|
|
329 |
<td class="right"><a href="#top">Top</a></td>
|
|
330 |
</tr>
|
|
331 |
</table>
|
|
332 |
</dt>
|
|
333 |
<dd>
|
|
334 |
<table border="1" cellspacing="0" cellpadding="0" width="400px">
|
|
335 |
<tr><th>Ordinal</th><th>Name</th></tr>
|
|
336 |
<xsl:for-each select="function">
|
|
337 |
<tr>
|
|
338 |
<td width="45px"><xsl:value-of select="@ordinal"/></td>
|
|
339 |
<td><xsl:value-of select="@name"/></td>
|
|
340 |
</tr>
|
|
341 |
</xsl:for-each> <!-- function -->
|
|
342 |
</table>
|
|
343 |
</dd>
|
|
344 |
</dl>
|
|
345 |
|
|
346 |
</xsl:for-each> <!-- report/properties/component -->
|
|
347 |
|
|
348 |
|
|
349 |
</body>
|
|
350 |
</html>
|
|
351 |
|
|
352 |
|
|
353 |
|
|
354 |
</xsl:template>
|
|
355 |
|
|
356 |
|
|
357 |
<!--
|
|
358 |
*******************************************************************************
|
|
359 |
*
|
|
360 |
* Template to create components
|
|
361 |
*
|
|
362 |
*******************************************************************************
|
|
363 |
-->
|
|
364 |
|
|
365 |
<xsl:template match="component" mode="COMPONENTS">
|
|
366 |
|
|
367 |
<dl>
|
|
368 |
|
|
369 |
<!-- Creating component name -->
|
|
370 |
<dt>
|
|
371 |
<xsl:variable name="baseComponentName">
|
|
372 |
<xsl:value-of select="@name"/>
|
|
373 |
</xsl:variable>
|
|
374 |
<!-- if type is base, an ancor will be created for reference types to point it -->
|
|
375 |
<xsl:choose>
|
|
376 |
<xsl:when test="@type='base'">
|
|
377 |
<a name="{$baseComponentName}">
|
|
378 |
|
|
379 |
</a>
|
|
380 |
<b><xsl:value-of select="@name"/></b>
|
|
381 |
</xsl:when>
|
|
382 |
<xsl:otherwise>
|
|
383 |
<!-- else if type is reference, an link will be created to point base -->
|
|
384 |
<a href="#{$baseComponentName}">
|
|
385 |
<i> <b><xsl:value-of select="@name"/></b> </i>
|
|
386 |
</a>
|
|
387 |
</xsl:otherwise>
|
|
388 |
</xsl:choose>
|
|
389 |
|
|
390 |
<!-- Unique anchor for TOC -->
|
|
391 |
<xsl:variable name="fullName">
|
|
392 |
<xsl:value-of select="@fullName"/>
|
|
393 |
</xsl:variable>
|
|
394 |
<a name="{$fullName}"></a>
|
|
395 |
|
|
396 |
<!-- Links to properties and exported functions -->
|
|
397 |
  
|
|
398 |
<i><a href="#property_{$baseComponentName}"><Properties></a></i>
|
|
399 |
  
|
|
400 |
<i><a href="#exportedFunction_{$baseComponentName}"><Exported functions></a></i>
|
|
401 |
|
|
402 |
</dt>
|
|
403 |
<!-- Creating component name ends -->
|
|
404 |
|
|
405 |
|
|
406 |
<dd>
|
|
407 |
|
|
408 |
<table border="1" cellspacing="0" cellpadding="0">
|
|
409 |
<caption>Imported functions</caption>
|
|
410 |
<tr>
|
|
411 |
<th>Ordinal</th><th>Name</th><th>Offset</th>
|
|
412 |
</tr>
|
|
413 |
|
|
414 |
<xsl:for-each select="importedFunctions/function">
|
|
415 |
<tr>
|
|
416 |
|
|
417 |
<xsl:choose>
|
|
418 |
<xsl:when test="@virtual='0'">
|
|
419 |
<!-- if offset is not set function is not virtual -->
|
|
420 |
<td><xsl:value-of select="@ordinal"/></td>
|
|
421 |
<td><xsl:value-of select="@name"/></td>
|
|
422 |
<td><xsl:value-of select="@offset"/>  </td>
|
|
423 |
</xsl:when>
|
|
424 |
<xsl:otherwise>
|
|
425 |
<!-- else function is virtual -->
|
|
426 |
<td><i><xsl:value-of select="@ordinal"/></i></td>
|
|
427 |
<td><i><xsl:value-of select="@name"/></i></td>
|
|
428 |
<td><i><xsl:value-of select="@offset"/>  </i></td>
|
|
429 |
|
|
430 |
</xsl:otherwise>
|
|
431 |
</xsl:choose>
|
|
432 |
|
|
433 |
</tr>
|
|
434 |
</xsl:for-each> <!-- importedFunctions/function -->
|
|
435 |
</table>
|
|
436 |
<br></br>
|
|
437 |
</dd>
|
|
438 |
|
|
439 |
|
|
440 |
<!-- Link to top align to right -->
|
|
441 |
<p class="right"><a href="#top">Top</a></p>
|
|
442 |
|
|
443 |
<!--
|
|
444 |
Recursivily call same function until "<component>" -element found
|
|
445 |
Every <component> under <component> will be tabulated
|
|
446 |
-->
|
|
447 |
|
|
448 |
<dl>
|
|
449 |
<xsl:apply-templates mode="COMPONENTS"/>
|
|
450 |
</dl>
|
|
451 |
|
|
452 |
|
|
453 |
</dl>
|
|
454 |
|
|
455 |
|
|
456 |
</xsl:template>
|
|
457 |
|
|
458 |
<!--
|
|
459 |
*******************************************************************************
|
|
460 |
*
|
|
461 |
* Template to create Table Of Contens for components, looping like
|
|
462 |
* components part, but not printing imported functions
|
|
463 |
*
|
|
464 |
*******************************************************************************
|
|
465 |
-->
|
|
466 |
|
|
467 |
<xsl:template match="component" mode="TOC">
|
|
468 |
|
|
469 |
<dl>
|
|
470 |
|
|
471 |
<dt>
|
|
472 |
<xsl:variable name="baseComponentName">
|
|
473 |
<xsl:value-of select="@name"/>
|
|
474 |
</xsl:variable>
|
|
475 |
<!-- Unique anchor for TOC -->
|
|
476 |
<xsl:variable name="fullName">
|
|
477 |
<xsl:value-of select="@fullName"/>
|
|
478 |
</xsl:variable>
|
|
479 |
|
|
480 |
<!-- if type is base, an link will be regular font -->
|
|
481 |
<xsl:choose>
|
|
482 |
<xsl:when test="@type='base'">
|
|
483 |
<a href="#{$fullName}">
|
|
484 |
<xsl:value-of select="@name"/>
|
|
485 |
</a>
|
|
486 |
|
|
487 |
</xsl:when>
|
|
488 |
<xsl:otherwise>
|
|
489 |
<!-- else if type is reference, an link will be italic -->
|
|
490 |
<a href="#{$fullName}">
|
|
491 |
<i> <xsl:value-of select="@name"/> </i>
|
|
492 |
</a>
|
|
493 |
</xsl:otherwise>
|
|
494 |
</xsl:choose>
|
|
495 |
|
|
496 |
</dt>
|
|
497 |
|
|
498 |
<!--
|
|
499 |
Recursivily call same function until "<component>" -element found
|
|
500 |
Every <component> under <component> will be tabulated
|
|
501 |
-->
|
|
502 |
<dl>
|
|
503 |
<xsl:apply-templates mode="TOC"/>
|
|
504 |
</dl>
|
|
505 |
|
|
506 |
|
|
507 |
</dl>
|
|
508 |
|
|
509 |
|
|
510 |
</xsl:template>
|
|
511 |
|
|
512 |
|
|
513 |
</xsl:stylesheet> |