source: subversion/applications/utils/gosmin/maps.xsl @ 18618

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

update docs

File size: 5.5 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="map">
17<tr>
18
19<!-- picture column-->
20<td rowspan="2" valign="top">
21<xsl:if test="picture/@url != ''">
22<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
23</xsl:if>
24<a>
25<xsl:attribute name="href">images/maps/<xsl:value-of select="picture/@url"/></xsl:attribute>
26<xsl:attribute name="target">_blank</xsl:attribute>
27<img height="60" border="0">
28<xsl:attribute name="src">images/maps/<xsl:value-of select="picture/@url"/></xsl:attribute></img>
29</a>
30</td>
31
32<th>
33<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
34en
35</th>
36
37<!-- boundary column-->
38<td valign="top">
39<xsl:if test="@boundary != ''">
40<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
41</xsl:if>
42<xsl:value-of select="@boundary"/>
43</td>
44<!-- name column-->
45<td valign="top">
46<xsl:if test="@name != ''">
47<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
48</xsl:if>
49<xsl:value-of select="@name"/>
50</td>
51<!-- comment column-->
52<td valign="top">
53<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
54<xsl:value-of select="@comment"/>
55</td>
56<!-- updated column-->
57<td valign="top">
58<xsl:if test="@updated != ''">
59<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
60</xsl:if>
61<xsl:value-of select="@updated"/>
62</td>
63
64<!-- download column-->
65<td rowspan="2">
66<xsl:if test="download/@url != ''">
67<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
68<a>
69<xsl:attribute name="href"><xsl:value-of select="download/@url"/></xsl:attribute>
70<xsl:attribute name="target">_blank</xsl:attribute>
71URL</a>
72</xsl:if>
73</td>
74<td align="right" rowspan="2">
75<xsl:if test="download/@sizeMB != ''">
76<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
77</xsl:if>
78<xsl:value-of select="download/@sizeMB"/> MB
79</td>
80
81<!-- file column-->
82<td rowspan="2">
83<xsl:if test="file/@name != ''">
84<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
85</xsl:if>
86<xsl:value-of select="file/@name"/>
87</td>
88<td align="right" rowspan="2">
89<xsl:if test="file/@sizeMB != ''">
90<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
91</xsl:if>
92<xsl:value-of select="file/@sizeMB"/> MB
93</td>
94
95<!-- routing column-->
96<td rowspan="2">
97<xsl:if test="file/@name != ''">
98<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
99</xsl:if>
100<xsl:value-of select="attributes/@routing"/>
101</td>
102   
103<!-- details column-->
104<td rowspan="2">
105<xsl:if test="details/@url != ''">
106<xsl:attribute name="bgcolor">#00ff00</xsl:attribute>
107<a>
108<xsl:attribute name="href"><xsl:value-of select="details/@url"/></xsl:attribute>
109<xsl:attribute name="target">_blank</xsl:attribute>
110URL</a>
111</xsl:if>
112</td>
113
114</tr>
115
116<tr>
117<th>
118<xsl:attribute name="bgcolor">#80ff80</xsl:attribute>
119de
120</th>
121<!-- boundary column-->
122<td valign="top">
123<xsl:if test="lang/@boundary != ''">
124<xsl:attribute name="bgcolor">#80ff80</xsl:attribute>
125</xsl:if>
126<xsl:value-of select="lang/@boundary"/>
127</td>
128<!-- name column-->
129<td valign="top">
130<xsl:if test="lang/@name != ''">
131<xsl:attribute name="bgcolor">#80ff80</xsl:attribute>
132</xsl:if>
133<xsl:value-of select="lang/@name"/>
134</td>
135<!-- comment column-->
136<td valign="top">
137<xsl:attribute name="bgcolor">#80ff80</xsl:attribute>
138<xsl:value-of select="lang/@comment"/>
139</td>
140<!-- updated column-->
141<td valign="top">
142<xsl:if test="lang/@updated != ''">
143<xsl:attribute name="bgcolor">#80ff80</xsl:attribute>
144</xsl:if>
145<xsl:value-of select="lang/@updated"/>
146</td>
147
148</tr>
149
150
151</xsl:template>
152   
153<xsl:template match="maps">
154<!-- DO NOT EDIT, automatically generated data -->
155<html>
156<title>List of Maps</title>
157<body>
158
159<h1>List of Maps</h1>
160
161<!-- dir currently not required -->
162<xsl:for-each select="device/@name">
163<xsl:if test=". = 'Colorado 300'"><xsl:value-of select="../@series"/>: </xsl:if>
164<xsl:if test=". = 'Edge 205'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
165<xsl:if test=". = 'eTrex'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
166<xsl:if test=". = 'eTrex Summit'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
167<xsl:if test=". = 'eTrex Legend'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
168<xsl:if test=". = 'eTrex Venture Cx'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
169<xsl:if test=". = 'eTrex Vista'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
170<xsl:if test=". = 'Forerunner 101'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
171<xsl:if test=". = 'Geko 101'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
172<xsl:if test=". = 'GPS 12XL'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
173<xsl:if test=". = 'GPSMAP 60Cx'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
174<xsl:if test=". = 'Nüvi 200'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
175<xsl:if test=". = 'Oregon 200'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
176<xsl:if test=". = 'Quest 1'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
177<xsl:if test=". = 'Zumo 400'"><br/><xsl:value-of select="../@series"/>: </xsl:if>
178<a>
179<xsl:attribute name="href">#<xsl:value-of select="."/></xsl:attribute>
180<xsl:value-of select="."/></a>
181<xsl:text> </xsl:text>
182</xsl:for-each>
183<br/>
184<br/>
185
186<table border="1">
187<tr>
188<th>Picture</th>
189<th>lang</th>
190<th>Boundary</th>
191<th>Name</th>
192<th>Comment</th>
193<th>Updated</th>
194<th colspan="2">Download</th>
195<th colspan="2">File</th>
196<th>Routing</th>
197<th>Details</th>
198</tr>
199
200<xsl:apply-templates/>
201
202</table>
203
204</body>
205
206</html>
207</xsl:template>
208
209 
210</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.