|
1 <?xml version="1.0" encoding="ISO-8859-1"?> |
|
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
3 <!-- |
|
4 Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
5 All rights reserved. |
|
6 This component and the accompanying materials are made available |
|
7 under the terms of the License "Eclipse Public License v1.0" |
|
8 which accompanies this distribution, and is available |
|
9 at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
10 |
|
11 Initial Contributors: |
|
12 Nokia Corporation - initial contribution. |
|
13 |
|
14 Contributors: |
|
15 |
|
16 Description: |
|
17 |
|
18 --> |
|
19 |
|
20 <xsl:template match="/"> |
|
21 <HTML> |
|
22 <HEAD> |
|
23 <TITLE>Image Checker Result</TITLE> |
|
24 <h2>Image Checker Result</h2> |
|
25 </HEAD> |
|
26 <BODY> |
|
27 <xsl:apply-templates/> |
|
28 </BODY> |
|
29 </HTML> |
|
30 </xsl:template> |
|
31 <xsl:template match="comment"> |
|
32 <xsl:variable name="command" select="@comment"/> |
|
33 <xsl:for-each select="Image"> |
|
34 <TEXT><B>Image Name : </B></TEXT> |
|
35 <xsl:value-of select="@name"/><br></br><br></br> |
|
36 <TABLE width="800" border='1' bgcolor="AliceBlue" align="center"> |
|
37 <tr bgcolor="Green"> |
|
38 <th>S.No.</th> |
|
39 <th>Executable</th> |
|
40 <th>Attribute</th> |
|
41 <th>Value</th> |
|
42 <xsl:if test="contains($command, '-n') = false"> |
|
43 <th>Status</th> |
|
44 </xsl:if> |
|
45 </tr> |
|
46 <xsl:for-each select="Executable"> |
|
47 <tr> |
|
48 <td><xsl:value-of select="@SNo"/></td> |
|
49 <td><A NAME="{@name}"><xsl:value-of select="@name"/></A></td> |
|
50 </tr> |
|
51 <xsl:for-each select="Dependency"> |
|
52 <tr> |
|
53 <td/> |
|
54 <td/> |
|
55 <td>Dependency</td> |
|
56 <xsl:choose> |
|
57 <xsl:when test="@status = 'Available'"> |
|
58 <td><A HREF="#{@name}"><xsl:value-of select="@name"/></A></td> |
|
59 </xsl:when> |
|
60 <xsl:when test="@name = 'unknown'"> |
|
61 <td><A HREF="#{@name}"><xsl:value-of select="@name"/></A></td> |
|
62 </xsl:when> |
|
63 <xsl:otherwise> |
|
64 <td><xsl:value-of select="@name"/></td> |
|
65 </xsl:otherwise> |
|
66 </xsl:choose> |
|
67 <xsl:if test="contains($command, '-n') = false"> |
|
68 <xsl:choose> |
|
69 <xsl:when test="@status != 'Missing'"> |
|
70 <td><font color="Green"><xsl:value-of select="@status"/></font></td> |
|
71 </xsl:when> |
|
72 <xsl:otherwise> |
|
73 <td><font color="Red"><xsl:value-of select="@status"/></font></td> |
|
74 </xsl:otherwise> |
|
75 </xsl:choose> |
|
76 </xsl:if> |
|
77 </tr> |
|
78 </xsl:for-each> |
|
79 <xsl:for-each select="SID"> |
|
80 <tr> |
|
81 <td/> |
|
82 <td/> |
|
83 <td>SID</td> |
|
84 <td><xsl:value-of select ="@val"/></td> |
|
85 <xsl:if test="contains($command, '-n') = false"> |
|
86 <td> |
|
87 <xsl:if test="@status = 'Unique'"> |
|
88 <font color="Green"><xsl:value-of select="@status"/></font> |
|
89 </xsl:if> |
|
90 <xsl:if test="@status = 'Duplicate'"> |
|
91 <font color="Red"><xsl:value-of select="@status"/></font> |
|
92 </xsl:if> |
|
93 <xsl:if test="@status = 'Unique(alias)'"> |
|
94 <font color="Green"><xsl:value-of select="@status"/></font> |
|
95 </xsl:if> |
|
96 </td> |
|
97 </xsl:if> |
|
98 </tr> |
|
99 </xsl:for-each> |
|
100 <xsl:for-each select="VID"> |
|
101 <tr> |
|
102 <td/> |
|
103 <td/> |
|
104 <td>VID</td> |
|
105 <td><xsl:value-of select ="@val"/></td> |
|
106 <xsl:if test="contains($command, '-n') = false"> |
|
107 <td> |
|
108 <xsl:if test="@status = 'Valid'"> |
|
109 <font color="Green"><xsl:value-of select="@status"/></font> |
|
110 </xsl:if> |
|
111 <xsl:if test="@status = 'Invalid'"> |
|
112 <font color="Red"><xsl:value-of select="@status"/></font> |
|
113 </xsl:if> |
|
114 </td> |
|
115 </xsl:if> |
|
116 </tr> |
|
117 </xsl:for-each> |
|
118 <xsl:for-each select="DBG"> |
|
119 <tr> |
|
120 <td/> |
|
121 <td/> |
|
122 <td>Debug flag</td> |
|
123 <td><xsl:value-of select ="@name"/></td> |
|
124 <xsl:if test="contains($command, '-n') = false"> |
|
125 <td> |
|
126 <xsl:if test="@status = 'Matching'"> |
|
127 <font color="Green"><xsl:value-of select="@status"/></font> |
|
128 </xsl:if> |
|
129 <xsl:if test="@status = 'Not Matching'"> |
|
130 <font color="Red"><xsl:value-of select="@status"/></font> |
|
131 </xsl:if> |
|
132 </td> |
|
133 </xsl:if> |
|
134 </tr> |
|
135 </xsl:for-each> |
|
136 </xsl:for-each> |
|
137 </TABLE> |
|
138 <br></br> |
|
139 </xsl:for-each> |
|
140 </xsl:template> |
|
141 <xsl:template match="Note"> |
|
142 <TEXT><B>Note : </B></TEXT> |
|
143 <font color="blue"><A NAME="{@name}"><xsl:value-of select="@name"/></A><xsl:value-of select="@Note"/></font><br></br><br></br> |
|
144 </xsl:template> |
|
145 </xsl:stylesheet> |