source: josm/trunk/styles/standard/overview.xsl@ 706

Last change on this file since 706 was 706, checked in by (none), 16 years ago

first version of overview stylesheet that produces really usable output - still needs some more work though

File size: 21.1 KB
RevLine 
[703]1<?xml version="1.0" encoding="iso-8859-1"?>
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="xml"
11 indent="yes"
12 encoding="UTF-8"
13 />
14
15
[706]16<xsl:variable name="column-width">2</xsl:variable>
17<xsl:variable name="xscale">10</xsl:variable>
[705]18<xsl:variable name="yscale">10</xsl:variable>
[706]19<xsl:variable name="areaoffset">4</xsl:variable>
[705]20
[703]21
[706]22<xsl:template name="node-attributes">
23 <xsl:param name="id" />
24 <xsl:param name="x" />
25 <xsl:param name="y" />
26
[703]27
[706]28 <xsl:variable name="lon">
[703]29 <xsl:choose>
[706]30 <xsl:when test="$x &gt;= 1000"><xsl:value-of select="$x" /></xsl:when>
31 <xsl:when test="$x &gt;= 100">0<xsl:value-of select="$x" /></xsl:when>
32 <xsl:when test="$x &gt;= 10">00<xsl:value-of select="$x" /></xsl:when>
33 <xsl:otherwise>000<xsl:value-of select="$x" /></xsl:otherwise>
[703]34 </xsl:choose>
35 </xsl:variable>
[706]36
37 <xsl:variable name="lat">
[703]38 <xsl:choose>
[706]39 <xsl:when test="$y &gt;= 1000"><xsl:value-of select="$y" /></xsl:when>
40 <xsl:when test="$y &gt;= 100">0<xsl:value-of select="$y" /></xsl:when>
41 <xsl:when test="$y &gt;= 10">00<xsl:value-of select="$y" /></xsl:when>
42 <xsl:otherwise>000<xsl:value-of select="$y" /></xsl:otherwise>
[703]43 </xsl:choose>
44 </xsl:variable>
45
[706]46
47 <xsl:attribute name="id"><xsl:value-of select="$id" /></xsl:attribute>
48 <xsl:attribute name="user">overview-creator</xsl:attribute>
49 <xsl:attribute name="visible">true</xsl:attribute>
50 <xsl:attribute name="lat">-0.0<xsl:value-of select="$lat" /></xsl:attribute>
51 <xsl:attribute name="lon">0.0<xsl:value-of select="$lon" /></xsl:attribute>
52
53 <!-- debugging
54 <xsl:element name="tag">
55 <xsl:attribute name="k">x</xsl:attribute>
56 <xsl:attribute name="v"><xsl:value-of select="$x" /></xsl:attribute>
57 </xsl:element>
58
59 <xsl:element name="tag">
60 <xsl:attribute name="k">y</xsl:attribute>
61 <xsl:attribute name="v"><xsl:value-of select="$y" /></xsl:attribute>
62 </xsl:element>
63 -->
64
65 <!-- debugging
66 <xsl:element name="tag">
67 <xsl:attribute name="k">lat</xsl:attribute>
68 <xsl:attribute name="v"><xsl:value-of select="$lat" /></xsl:attribute>
69 </xsl:element>
70
71 <xsl:element name="tag">
72 <xsl:attribute name="k">lon</xsl:attribute>
73 <xsl:attribute name="v"><xsl:value-of select="$lon" /></xsl:attribute>
74 </xsl:element>
75 -->
76
77</xsl:template>
78
79
80
81<xsl:template name="rule">
82 <xsl:param name="index" />
83 <xsl:param name="xpos" />
84 <xsl:param name="ypos" />
85
86
87 <xsl:variable name="xoffset"><xsl:value-of select="number( ($xpos) * ($xscale + $column-width*$xscale) )" /></xsl:variable>
88 <xsl:variable name="yoffset"><xsl:value-of select="number($ypos*$yscale)" /></xsl:variable>
89 <xsl:variable name="idbase"><xsl:value-of select="number($xpos * 20000 + $ypos * 200)" /></xsl:variable>
90
91
92
93 <!-- ICON example -->
[703]94 <xsl:element name="node">
[706]95 <xsl:call-template name="node-attributes">
96 <xsl:with-param name="id" select="-number($idbase + 0)"/>
97 <xsl:with-param name="x" select="number( 0*$xscale + $xoffset )"/>
98 <xsl:with-param name="y" select="$yoffset"/>
99 </xsl:call-template>
100
101 <xsl:element name="tag">
102 <xsl:attribute name="k"><xsl:value-of select = "rule[$index]/condition/@k" /></xsl:attribute>
103 <xsl:attribute name="v"><xsl:value-of select = "rule[$index]/condition/@v" /></xsl:attribute>
104 </xsl:element>
105 <xsl:element name="tag">
106 <xsl:attribute name="k">name</xsl:attribute>
107 <xsl:attribute name="v"><xsl:value-of select = "rule[$index]/condition/@v" /></xsl:attribute>
108 </xsl:element>
109 </xsl:element>
110
111
112 <!-- AREA / LINE example -->
113
114 <xsl:element name="node">
115 <xsl:call-template name="node-attributes">
116 <xsl:with-param name="id" select="-number($idbase + 1)"/>
117 <xsl:with-param name="x" select="number($xoffset - $areaoffset)"/>
118 <xsl:with-param name="y" select="number($yoffset - $areaoffset)"/>
119 </xsl:call-template>
120 <xsl:element name="tag">
121 <xsl:attribute name="k">pos</xsl:attribute>
122 <xsl:attribute name="v">nw</xsl:attribute>
123 </xsl:element>
124 </xsl:element>
125
126 <xsl:element name="node">
127 <xsl:call-template name="node-attributes">
128 <xsl:with-param name="id" select="-number($idbase + 2)"/>
129 <xsl:with-param name="x" select="number($xoffset + $areaoffset + 2*$xscale)"/>
130 <xsl:with-param name="y" select="number($yoffset - $areaoffset)"/>
131 </xsl:call-template>
132 <xsl:element name="tag">
133 <xsl:attribute name="k">pos</xsl:attribute>
134 <xsl:attribute name="v">ne</xsl:attribute>
135 </xsl:element>
136 </xsl:element>
137
138 <xsl:element name="node">
139 <xsl:call-template name="node-attributes">
140 <xsl:with-param name="id" select="-number($idbase + 3)"/>
141 <xsl:with-param name="x" select="number($xoffset + $areaoffset + 2*$xscale)"/>
142 <xsl:with-param name="y" select="number($yoffset + $areaoffset)"/>
143 </xsl:call-template>
144 <xsl:element name="tag">
145 <xsl:attribute name="k">pos</xsl:attribute>
146 <xsl:attribute name="v">se</xsl:attribute>
147 </xsl:element>
148 </xsl:element>
149
150 <xsl:element name="node">
151 <xsl:call-template name="node-attributes">
152 <xsl:with-param name="id" select="-number($idbase + 4)"/>
153 <xsl:with-param name="x" select="number($xoffset - $areaoffset)"/>
154 <xsl:with-param name="y" select="number($yoffset + $areaoffset)"/>
155 </xsl:call-template>
156 <xsl:element name="tag">
157 <xsl:attribute name="k">pos</xsl:attribute>
158 <xsl:attribute name="v">sw</xsl:attribute>
159 </xsl:element>
160 </xsl:element>
161
162
163 <xsl:element name="way">
164 <xsl:attribute name="id"><xsl:value-of select="-number($idbase + 4)" /></xsl:attribute>
[703]165 <xsl:attribute name="user">overview-creator</xsl:attribute>
166 <xsl:attribute name="visible">true</xsl:attribute>
167
[706]168 <xsl:element name="nd">
169 <xsl:attribute name="ref"><xsl:value-of select = "-number($idbase + 1)" /></xsl:attribute>
170 </xsl:element>
171 <xsl:element name="nd">
172 <xsl:attribute name="ref"><xsl:value-of select = "-number($idbase + 2)" /></xsl:attribute>
173 </xsl:element>
174 <xsl:element name="nd">
175 <xsl:attribute name="ref"><xsl:value-of select = "-number($idbase + 3)" /></xsl:attribute>
176 </xsl:element>
177 <xsl:element name="nd">
178 <xsl:attribute name="ref"><xsl:value-of select = "-number($idbase + 4)" /></xsl:attribute>
179 </xsl:element>
180 <xsl:element name="nd">
181 <xsl:attribute name="ref"><xsl:value-of select = "-number($idbase + 1)" /></xsl:attribute>
182 </xsl:element>
183
[703]184 <xsl:element name="tag">
[706]185 <xsl:attribute name="k"><xsl:value-of select = "rule[$index]/condition/@k" /></xsl:attribute>
186 <xsl:attribute name="v"><xsl:value-of select = "rule[$index]/condition/@v" /></xsl:attribute>
[703]187 </xsl:element>
188 <xsl:element name="tag">
189 <xsl:attribute name="k">name</xsl:attribute>
[706]190 <xsl:attribute name="v"><xsl:value-of select = "rule[$index]/condition/@v" /></xsl:attribute>
[703]191 </xsl:element>
192 </xsl:element>
193</xsl:template>
194
195
196<xsl:template name="posed_rules">
197
198 <xsl:param name="key"/>
[706]199 <xsl:param name="index"/>
[703]200 <xsl:param name="xpos"/>
201 <xsl:param name="ypos"/>
202
[706]203 <xsl:if test="rule[$index]/condition/@k=$key">
[703]204 <xsl:call-template name="rule">
[706]205 <xsl:with-param name="index" select="$index"/>
[703]206 <xsl:with-param name="xpos" select="$xpos"/>
207 <xsl:with-param name="ypos" select="$ypos"/>
208 </xsl:call-template>
209
[706]210 <xsl:choose>
211 <xsl:when test="$ypos &lt; 44">
212 <!-- recursive call - increasing index and output counters -->
213 <xsl:call-template name="posed_rules">
214 <xsl:with-param name="key" select="$key"/>
215 <xsl:with-param name="index" select="$index + 1"/>
216 <xsl:with-param name="xpos" select="$xpos"/>
217 <xsl:with-param name="ypos" select="$ypos + 1"/>
218 </xsl:call-template>
219 </xsl:when>
220 <xsl:otherwise>
221 <!-- recursive call - increasing index and output counters -->
222 <xsl:call-template name="posed_rules">
223 <xsl:with-param name="key" select="$key"/>
224 <xsl:with-param name="index" select="$index + 1"/>
225 <xsl:with-param name="xpos" select="$xpos + 1"/>
226 <xsl:with-param name="ypos" select="35"/>
227 </xsl:call-template>
228 </xsl:otherwise>
229 </xsl:choose>
[703]230 </xsl:if>
231
[706]232 <xsl:if test="rule[$index]/condition/@k!=$key">
233 <!-- recursive call - only increasing the index counter -->
[703]234 <xsl:call-template name="posed_rules">
235 <xsl:with-param name="key" select="$key"/>
[706]236 <xsl:with-param name="index" select="$index + 1"/>
[703]237 <xsl:with-param name="xpos" select="$xpos"/>
238 <xsl:with-param name="ypos" select="$ypos"/>
239 </xsl:call-template>
240 </xsl:if>
241
242</xsl:template>
243
244
[706]245<xsl:template name="topic">
246
[703]247 <xsl:param name="key"/>
[706]248 <xsl:param name="row"/>
249 <xsl:param name="column"/>
[705]250
251
[706]252 <xsl:variable name="xoffset"><xsl:value-of select="number( ($column) * ($xscale + $column-width*$xscale) )" /></xsl:variable>
253 <xsl:variable name="yoffset"><xsl:value-of select="number($row*$yscale)" /></xsl:variable>
254 <xsl:variable name="idbase"><xsl:value-of select="number($column * 20000 + $row * 200)" /></xsl:variable>
[705]255
[703]256
257 <!-- header item -->
258 <xsl:element name="node">
[706]259 <xsl:call-template name="node-attributes">
260 <xsl:with-param name="id" select="-number($idbase)"/>
261 <xsl:with-param name="x" select="number($xoffset)"/>
262 <xsl:with-param name="y" select="number($yoffset)"/>
263 </xsl:call-template>
[703]264
265 <xsl:element name="tag">
266 <xsl:attribute name="k"><xsl:value-of select = "'tourism'" /></xsl:attribute>
[706]267 <xsl:attribute name="v"><xsl:value-of select = "'information'" /></xsl:attribute>
[703]268 </xsl:element>
269 <xsl:element name="tag">
270 <xsl:attribute name="k">name</xsl:attribute>
271 <xsl:attribute name="v"><xsl:value-of select = "$key" /></xsl:attribute>
272 </xsl:element>
273 </xsl:element>
274
275 <!-- key related items -->
276 <xsl:call-template name="posed_rules">
277 <xsl:with-param name="key" select="$key"/>
[706]278 <xsl:with-param name="index" select="1"/>
279 <xsl:with-param name="xpos" select="$column"/>
280 <xsl:with-param name="ypos" select="number($row + 1)"/>
[703]281 </xsl:call-template>
282</xsl:template>
283
284
285<xsl:template match="rules">
286
[706]287 <xsl:comment>DO NOT EDIT! THIS FILE IS GENERATED!!!</xsl:comment>
[703]288 <xsl:element name="osm">
289 <xsl:attribute name="version">0.5</xsl:attribute>
290 <xsl:attribute name="generator">overview-creator.xslt</xsl:attribute>
291
292
[706]293 <xsl:call-template name="topic">
[703]294 <xsl:with-param name="key" select="'highway'"/>
[706]295 <xsl:with-param name="column" select="1"/>
296 <xsl:with-param name="row" select="1"/>
[703]297 </xsl:call-template>
[706]298
299 <xsl:call-template name="topic">
[703]300 <xsl:with-param name="key" select="'cycleway'"/>
[706]301 <xsl:with-param name="column" select="2"/>
302 <xsl:with-param name="row" select="1"/>
303 </xsl:call-template>
304 <xsl:call-template name="topic">
[703]305 <xsl:with-param name="key" select="'tracktype'"/>
[706]306 <xsl:with-param name="column" select="2"/>
307 <xsl:with-param name="row" select="10"/>
[703]308 </xsl:call-template>
[706]309 <xsl:call-template name="topic">
310 <xsl:with-param name="key" select="'surface'"/>
311 <xsl:with-param name="column" select="2"/>
312 <xsl:with-param name="row" select="15"/>
313 </xsl:call-template>
314 <xsl:call-template name="topic">
315 <xsl:with-param name="key" select="'abutters'"/>
316 <xsl:with-param name="column" select="2"/>
317 <xsl:with-param name="row" select="20"/>
318 </xsl:call-template>
319 <xsl:call-template name="topic">
320 <xsl:with-param name="key" select="'bridge'"/>
321 <xsl:with-param name="column" select="2"/>
322 <xsl:with-param name="row" select="22"/>
323 </xsl:call-template>
324 <xsl:call-template name="topic">
325 <xsl:with-param name="key" select="'tunnel'"/>
326 <xsl:with-param name="column" select="2"/>
327 <xsl:with-param name="row" select="24"/>
328 </xsl:call-template>
329 <xsl:call-template name="topic">
330 <xsl:with-param name="key" select="'mountain_pass'"/>
331 <xsl:with-param name="column" select="2"/>
332 <xsl:with-param name="row" select="26"/>
333 </xsl:call-template>
334 <xsl:call-template name="topic">
335 <xsl:with-param name="key" select="'junction'"/>
336 <xsl:with-param name="column" select="2"/>
337 <xsl:with-param name="row" select="28"/>
338 </xsl:call-template>
339 <xsl:call-template name="topic">
340 <xsl:with-param name="key" select="'route'"/>
341 <xsl:with-param name="column" select="2"/>
342 <xsl:with-param name="row" select="35"/>
343 </xsl:call-template>
[703]344
[706]345 <xsl:call-template name="topic">
346 <xsl:with-param name="key" select="'access'"/>
347 <xsl:with-param name="column" select="3"/>
348 <xsl:with-param name="row" select="1"/>
[703]349 </xsl:call-template>
[706]350 <xsl:call-template name="topic">
351 <xsl:with-param name="key" select="'bicycle'"/>
352 <xsl:with-param name="column" select="3"/>
353 <xsl:with-param name="row" select="3"/>
354 </xsl:call-template>
355 <xsl:call-template name="topic">
356 <xsl:with-param name="key" select="'foot'"/>
357 <xsl:with-param name="column" select="3"/>
358 <xsl:with-param name="row" select="5"/>
359 </xsl:call-template>
360 <xsl:call-template name="topic">
361 <xsl:with-param name="key" select="'goods'"/>
362 <xsl:with-param name="column" select="3"/>
363 <xsl:with-param name="row" select="7"/>
364 </xsl:call-template>
365 <xsl:call-template name="topic">
366 <xsl:with-param name="key" select="'hgv'"/>
367 <xsl:with-param name="column" select="3"/>
368 <xsl:with-param name="row" select="9"/>
369 </xsl:call-template>
370 <xsl:call-template name="topic">
371 <xsl:with-param name="key" select="'horse'"/>
372 <xsl:with-param name="column" select="3"/>
373 <xsl:with-param name="row" select="11"/>
374 </xsl:call-template>
375 <xsl:call-template name="topic">
376 <xsl:with-param name="key" select="'motorcycle'"/>
377 <xsl:with-param name="column" select="3"/>
378 <xsl:with-param name="row" select="13"/>
379 </xsl:call-template>
380 <xsl:call-template name="topic">
381 <xsl:with-param name="key" select="'motorcar'"/>
382 <xsl:with-param name="column" select="3"/>
383 <xsl:with-param name="row" select="15"/>
384 </xsl:call-template>
385 <xsl:call-template name="topic">
386 <xsl:with-param name="key" select="'psv'"/>
387 <xsl:with-param name="column" select="3"/>
388 <xsl:with-param name="row" select="17"/>
389 </xsl:call-template>
390 <xsl:call-template name="topic">
391 <xsl:with-param name="key" select="'motorboat'"/>
392 <xsl:with-param name="column" select="3"/>
393 <xsl:with-param name="row" select="19"/>
394 </xsl:call-template>
395 <xsl:call-template name="topic">
396 <xsl:with-param name="key" select="'boat'"/>
397 <xsl:with-param name="column" select="3"/>
398 <xsl:with-param name="row" select="21"/>
399 </xsl:call-template>
400 <xsl:call-template name="topic">
401 <xsl:with-param name="key" select="'oneway'"/>
402 <xsl:with-param name="column" select="3"/>
403 <xsl:with-param name="row" select="23"/>
404 </xsl:call-template>
405 <xsl:call-template name="topic">
406 <xsl:with-param name="key" select="'noexit'"/>
407 <xsl:with-param name="column" select="3"/>
408 <xsl:with-param name="row" select="25"/>
409 </xsl:call-template>
410 <xsl:call-template name="topic">
411 <xsl:with-param name="key" select="'maxweight'"/>
412 <xsl:with-param name="column" select="3"/>
413 <xsl:with-param name="row" select="27"/>
414 </xsl:call-template>
415 <xsl:call-template name="topic">
416 <xsl:with-param name="key" select="'maxheight'"/>
417 <xsl:with-param name="column" select="3"/>
418 <xsl:with-param name="row" select="29"/>
419 </xsl:call-template>
420 <xsl:call-template name="topic">
421 <xsl:with-param name="key" select="'maxwidth'"/>
422 <xsl:with-param name="column" select="3"/>
423 <xsl:with-param name="row" select="31"/>
424 </xsl:call-template>
425 <xsl:call-template name="topic">
426 <xsl:with-param name="key" select="'maxlength'"/>
427 <xsl:with-param name="column" select="3"/>
428 <xsl:with-param name="row" select="33"/>
429 </xsl:call-template>
430 <xsl:call-template name="topic">
431 <xsl:with-param name="key" select="'maxspeed'"/>
432 <xsl:with-param name="column" select="3"/>
433 <xsl:with-param name="row" select="35"/>
434 </xsl:call-template>
435 <xsl:call-template name="topic">
436 <xsl:with-param name="key" select="'minspeed'"/>
437 <xsl:with-param name="column" select="3"/>
438 <xsl:with-param name="row" select="37"/>
439 </xsl:call-template>
440 <xsl:call-template name="topic">
441 <xsl:with-param name="key" select="'maxstay'"/>
442 <xsl:with-param name="column" select="3"/>
443 <xsl:with-param name="row" select="39"/>
444 </xsl:call-template>
445 <xsl:call-template name="topic">
446 <xsl:with-param name="key" select="'toll'"/>
447 <xsl:with-param name="column" select="3"/>
448 <xsl:with-param name="row" select="41"/>
449 </xsl:call-template>
450 <xsl:call-template name="topic">
451 <xsl:with-param name="key" select="'barrier'"/>
452 <xsl:with-param name="column" select="3"/>
453 <xsl:with-param name="row" select="43"/>
454 </xsl:call-template>
455
456 <xsl:call-template name="topic">
[703]457 <xsl:with-param name="key" select="'railway'"/>
[706]458 <xsl:with-param name="column" select="4"/>
459 <xsl:with-param name="row" select="1"/>
[703]460 </xsl:call-template>
[706]461 <xsl:call-template name="topic">
462 <xsl:with-param name="key" select="'service'"/>
463 <xsl:with-param name="column" select="4"/>
464 <xsl:with-param name="row" select="20"/>
465 </xsl:call-template>
466 <xsl:call-template name="topic">
467 <xsl:with-param name="key" select="'waterway'"/>
468 <xsl:with-param name="column" select="4"/>
469 <xsl:with-param name="row" select="25"/>
470 </xsl:call-template>
[703]471
[706]472 <xsl:call-template name="topic">
[703]473 <xsl:with-param name="key" select="'aeroway'"/>
[706]474 <xsl:with-param name="column" select="5"/>
475 <xsl:with-param name="row" select="1"/>
[703]476 </xsl:call-template>
477
[706]478 <xsl:call-template name="topic">
[703]479 <xsl:with-param name="key" select="'aerialway'"/>
[706]480 <xsl:with-param name="column" select="5"/>
481 <xsl:with-param name="row" select="25"/>
[703]482 </xsl:call-template>
483
[706]484 <xsl:call-template name="topic">
485 <xsl:with-param name="key" select="'piste:difficulty'"/>
486 <xsl:with-param name="column" select="5"/>
487 <xsl:with-param name="row" select="35"/>
[703]488 </xsl:call-template>
489
[706]490
491
492 <xsl:call-template name="topic">
493 <xsl:with-param name="key" select="'amenity'"/>
494 <xsl:with-param name="column" select="7"/>
495 <xsl:with-param name="row" select="1"/>
[703]496 </xsl:call-template>
497
[706]498 <xsl:call-template name="topic">
[703]499 <xsl:with-param name="key" select="'leisure'"/>
[706]500 <xsl:with-param name="column" select="8"/>
501 <xsl:with-param name="row" select="1"/>
[703]502 </xsl:call-template>
503
[706]504 <xsl:call-template name="topic">
[703]505 <xsl:with-param name="key" select="'tourism'"/>
[706]506 <xsl:with-param name="column" select="9"/>
507 <xsl:with-param name="row" select="1"/>
[703]508 </xsl:call-template>
509
[706]510 <xsl:call-template name="topic">
[703]511 <xsl:with-param name="key" select="'historic'"/>
[706]512 <xsl:with-param name="column" select="9"/>
513 <xsl:with-param name="row" select="25"/>
[703]514 </xsl:call-template>
515
[706]516 <xsl:call-template name="topic">
517 <xsl:with-param name="key" select="'man_made'"/>
518 <xsl:with-param name="column" select="10"/>
519 <xsl:with-param name="row" select="1"/>
[703]520 </xsl:call-template>
[706]521 <xsl:call-template name="topic">
522 <xsl:with-param name="key" select="'power'"/>
523 <xsl:with-param name="column" select="10"/>
524 <xsl:with-param name="row" select="25"/>
525 </xsl:call-template>
526 <xsl:call-template name="topic">
[703]527 <xsl:with-param name="key" select="'military'"/>
[706]528 <xsl:with-param name="column" select="10"/>
529 <xsl:with-param name="row" select="35"/>
[703]530 </xsl:call-template>
531
[706]532 <xsl:call-template name="topic">
533 <xsl:with-param name="key" select="'shop'"/>
534 <xsl:with-param name="column" select="11"/>
535 <xsl:with-param name="row" select="1"/>
[703]536 </xsl:call-template>
537
[706]538
539
[703]540
[706]541 <xsl:call-template name="topic">
[703]542 <xsl:with-param name="key" select="'sport'"/>
[706]543 <xsl:with-param name="column" select="13"/>
544 <xsl:with-param name="row" select="1"/>
[703]545 </xsl:call-template>
[706]546
547 <xsl:call-template name="topic">
548 <xsl:with-param name="key" select="'religion'"/>
549 <xsl:with-param name="column" select="14"/>
550 <xsl:with-param name="row" select="1"/>
[703]551 </xsl:call-template>
[706]552 <xsl:call-template name="topic">
553 <xsl:with-param name="key" select="'power_source'"/>
554 <xsl:with-param name="column" select="14"/>
555 <xsl:with-param name="row" select="25"/>
556 </xsl:call-template>
557 <xsl:call-template name="topic">
558 <xsl:with-param name="key" select="'building'"/>
559 <xsl:with-param name="column" select="14"/>
560 <xsl:with-param name="row" select="35"/>
561 </xsl:call-template>
[703]562
[706]563
564
[703]565
[706]566 <xsl:call-template name="topic">
567 <xsl:with-param name="key" select="'landuse'"/>
568 <xsl:with-param name="column" select="16"/>
569 <xsl:with-param name="row" select="1"/>
[703]570 </xsl:call-template>
571
[706]572 <xsl:call-template name="topic">
573 <xsl:with-param name="key" select="'natural'"/>
574 <xsl:with-param name="column" select="16"/>
575 <xsl:with-param name="row" select="25"/>
[703]576 </xsl:call-template>
577
[706]578 <xsl:call-template name="topic">
[703]579 <xsl:with-param name="key" select="'place'"/>
[706]580 <xsl:with-param name="column" select="17"/>
581 <xsl:with-param name="row" select="1"/>
[703]582 </xsl:call-template>
[706]583 <xsl:call-template name="topic">
584 <xsl:with-param name="key" select="'boundary'"/>
585 <xsl:with-param name="column" select="17"/>
586 <xsl:with-param name="row" select="25"/>
[703]587 </xsl:call-template>
588
589 </xsl:element>
590</xsl:template>
591
592</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.