source: subversion/applications/utils/gosmin/devices.xsl @ 18657

Last change on this file since 18657 was 18608, checked in by ulf, 10 years ago

update docs

File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<xsl:stylesheet
3    version="1.0"
4    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5    xmlns:html="http://www.w3.org/1999/xhtml"
6    exclude-result-prefixes="html"
7>
8 
9    <xsl:output
10        method="html"
11                indent="yes"
12        doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
13        doctype-public="-//W3C//DTD XHTML 1.1//EN"
14    />
15
16<xsl:template match="device">
17<tr>
18<!-- series column-->
19<td valign="top">
20<xsl:if test="@series != ''">
21<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
22</xsl:if>
23<a><xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute></a>
24<a><xsl:attribute name="series"><xsl:value-of select="@series"/></xsl:attribute></a>
25<b><xsl:value-of select="@series"/></b>
26<!--Brand: <xsl:value-of select="@brand"/><br/>-->
27</td>
28<!-- device column-->
29<td>
30<xsl:if test="@name != '' and @brand != '' and @series != ''">
31<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
32</xsl:if>
33<b><xsl:value-of select="@name"/></b><br/>
34<!--Brand: <xsl:value-of select="@brand"/><br/>-->
35<a><xsl:attribute name="href"><xsl:value-of select="help/@url"/></xsl:attribute>Wiki Page</a>
36</td>
37<!-- image column-->
38<td>
39<xsl:if test="picture/@url != '' and picture/@identical = 'yes'">
40<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
41</xsl:if>
42<xsl:if test="picture/@url != ''">
43<a>
44<xsl:attribute name="href">images/devices/<xsl:value-of select="picture/@url"/></xsl:attribute>
45<xsl:attribute name="target">_blank</xsl:attribute>
46<img border="0" width="60" height="60">
47<xsl:attribute name="src">images/devices/<xsl:value-of select="picture/@url"/></xsl:attribute>
48</img></a>
49</xsl:if>
50<xsl:if test="picture/@identical = 'similiar'">
51<br/>"Image similiar"
52</xsl:if>
53</td>
54<!-- connection1 column-->
55<td>
56<xsl:if test="(connection/@type = 'USB' and connection/@version != '') or (connection/@type = 'Serial') or (connection/@type = 'No')">
57<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
58</xsl:if>
59<xsl:choose>
60<xsl:when test="connection/@type = 'USB'">
61<img src="Images/Usb.png"/><br/>
62<xsl:value-of select="connection/@version"/>
63</xsl:when>
64<xsl:when test="connection/@type = 'Serial'">
65<img src="Images/SerialCOM.jpg"/>
66</xsl:when>
67<xsl:when test="connection/@type = 'No'">
68No
69</xsl:when>
70<xsl:otherwise>
71?
72</xsl:otherwise>
73</xsl:choose>
74</td>
75<!-- connection2 column-->
76<td>
77<xsl:if test="connection/@massstoragemode != ''">
78<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
79</xsl:if>
80MassStorageMode: <xsl:value-of select="connection/@massstoragemode"/>
81</td>
82<!-- files column-->
83<td>
84<xsl:if test="display/@typfile != '' and connection/@imgfiles != ''">
85<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
86</xsl:if>
87Typfile: <xsl:value-of select="display/@typfile"/>
88<br/>
89ImgFiles: <xsl:value-of select="connection/@imgfiles"/>
90</td>
91<!-- map column-->
92<td>
93<xsl:if test="display/@map != '' and display/@colors != ''">
94<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
95</xsl:if>
96Display: <xsl:value-of select="display/@map"/><br/>
97Colors: <xsl:value-of select="display/@colors"/>
98</td>
99<!-- memory column-->
100<td>
101<xsl:if test="memory/internal/@size != '' and memory/internal/@unit != ''">
102<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
103</xsl:if>
104Internal: <xsl:value-of select="memory/internal/@size"/> <xsl:value-of select="memory/internal/@unit"/>
105</td>
106<!-- card slot column-->
107<td>
108<xsl:if test="memory/slot/@type != ''">
109<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
110</xsl:if>
111<xsl:choose>
112<xsl:when test="memory/slot/@type = 'SD'">
113<img width="30" height="40" src="Images/SecureDigital.png"/> SD
114</xsl:when>
115<xsl:when test="memory/slot/@type = 'microSD'">
116<img width="18" height="25" src="Images/SecureDigitalMicro.png"/><br/>microSD
117</xsl:when>
118<xsl:when test="memory/slot/@type = 'No'">
119No
120</xsl:when>
121<xsl:otherwise>
122?
123</xsl:otherwise>
124</xsl:choose>
125</td>
126<!-- card slot column-->
127<td>
128<xsl:if test="memory/slot/@type = 'No' or (memory/slot/card/@type != '' and memory/slot/card[@type='SD']/@maxsize != '' and memory/slot/card[@type='SDHC']/@maxsize != '' and memory/slot/card/@unit != '')">
129<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
130</xsl:if>
131<xsl:for-each select="memory/slot/card">
132<xsl:value-of select="@type"/> Max: <xsl:value-of select="@maxsize"/> <xsl:value-of select="@unit"/>
133<br/>
134</xsl:for-each>
135</td>
136<!-- firmware column-->
137<td>
138<xsl:if test="firmware/@version != ''">
139<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
140</xsl:if>
141Version: <xsl:value-of select="firmware/@version"/>
142</td>
143</tr>
144</xsl:template>
145   
146<xsl:template match="devices">
147<!-- DO NOT EDIT, automatically generated data -->
148<html>
149<title>List of Devices</title>
150<body>
151
152<h1>List of Devices</h1>
153
154<xsl:for-each select="device/@name">
155<xsl:if test=". = 'Colorado 300'"><xsl:value-of select="../@series"/>: </xsl:if>
156<xsl:if test=". = 'Edge 205'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
157<xsl:if test=". = 'eTrex'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
158<xsl:if test=". = 'eTrex Summit'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
159<xsl:if test=". = 'eTrex Legend'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
160<xsl:if test=". = 'eTrex Venture Cx'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
161<xsl:if test=". = 'eTrex Vista'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
162<xsl:if test=". = 'Forerunner 101'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
163<xsl:if test=". = 'Geko 101'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
164<xsl:if test=". = 'GPS 12XL'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
165<xsl:if test=". = 'GPSMAP 60Cx'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
166<xsl:if test=". = 'Nüvi 200'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
167<xsl:if test=". = 'Oregon 200'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
168<xsl:if test=". = 'Quest 1'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
169<xsl:if test=". = 'Zumo 400'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
170<a>
171<xsl:attribute name="href">#<xsl:value-of select="."/></xsl:attribute>
172<xsl:value-of select="."/></a>
173<xsl:text> </xsl:text>
174</xsl:for-each>
175<br/>
176<br/>
177
178<table border="1">
179<tr>
180<th>Series</th>
181<th>Device</th>
182<th>Picture</th>
183<th colspan="2">Connection</th>
184<th>Files</th>
185<th>Map</th>
186<th>Memory</th>
187<th colspan="2">Card Slot</th>
188<th>Firmware</th>
189</tr>
190
191<xsl:apply-templates/>
192
193</table>
194
195</body>
196
197</html>
198</xsl:template>
199
200 
201</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.