annotate flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 3377:a5c790ed09bd

FixA: Bring overview transformation in sync with flys-artifacts. flys-client/trunk@5095 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 21 Jul 2012 18:05:58 +0000
parents 653dd9d7f5d5
children c8193b600d9b
rev   line source
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 <xsl:stylesheet
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 version="1.0"
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
5
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
6 <xsl:output method="html" encoding="UTF-8"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
7
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
8 <xsl:param name="project-uuid">de3f3307-3429-4ff9-8f43-3fb2fcf21b27</xsl:param>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
9 <xsl:param name="render-checkboxes" select="true()"/>
2505
87ac5c532523 First part of the UI for fixing analysis parameter.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2493
diff changeset
10 <xsl:param name="callback"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
12 <xsl:param name="locale">de</xsl:param>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
13
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
14 <xsl:decimal-format name="de" decimal-separator=',' grouping-separator='.'/>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
15 <xsl:decimal-format name="en" decimal-separator='.' grouping-separator=','/>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
16
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
17 <!-- XXX: This kind of i18n is cheesy.
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
18 It should be better done in an external resource. -->
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
19
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
20 <xsl:variable name="km-pattern">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
21 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
22 <xsl:when test="$locale = 'de'">0,##</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
23 <xsl:otherwise>0.##</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
24 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
25 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
26
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
27 <xsl:variable name="i18n-event">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
28 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
29 <xsl:when test="$locale = 'de'">Ereignis</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
30 <xsl:otherwise>Event</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
31 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
32 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
33
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
34 <xsl:variable name="i18n-legend">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
35 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
36 <xsl:when test="$locale = 'de'">Legende</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
37 <xsl:otherwise>Caption</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
38 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
39 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
40
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
41 <xsl:variable name="i18n-color">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
42 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
43 <xsl:when test="$locale = 'de'">Farbe</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
44 <xsl:otherwise>Color</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
45 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
46 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
47
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
48 <xsl:variable name="i18n-meaning">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
49 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
50 <xsl:when test="$locale = 'de'">Bedeutung</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
51 <xsl:otherwise>Meaning</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
52 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
53 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
54
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
55 <xsl:variable name="i18n-around-mnq">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
56 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
57 <xsl:when test="$locale = 'de'">um MNQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
58 <xsl:otherwise>around MNQ</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
59 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
60 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
61
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
62 <xsl:variable name="i18n-around-mq">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
63 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
64 <xsl:when test="$locale = 'de'">um MQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
65 <xsl:otherwise>around MQ</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
66 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
67 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
68
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
69 <xsl:variable name="i18n-around-mhq">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
70 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
71 <xsl:when test="$locale = 'de'">um MHQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
72 <xsl:otherwise>around MHQ</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
73 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
74 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
75
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
76 <xsl:variable name="i18n-above-hq5">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
77 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
78 <xsl:when test="$locale = 'de'">über HQ5</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
79 <xsl:otherwise>above HQ5</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
80 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
81 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
82
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
83 <!-- TODO: Format dates according locale. -->
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
84
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
85 <xsl:template match="@*" mode="min">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
86 <xsl:if test="position() = 1">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
87 <xsl:value-of select="number(.)"/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
88 </xsl:if>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
89 </xsl:template>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
90
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
91 <xsl:template match="@*" mode="max">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
92 <xsl:if test="position() = last()">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
93 <xsl:value-of select="number(.)"/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
94 </xsl:if>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
95 </xsl:template>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
96
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
97 <xsl:variable name="global-min">
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
98 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
99 <xsl:when test="count(/fixings/events/event/sector) &gt; 0">
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
100 <xsl:apply-templates mode="min" select="/fixings/events/event/sector/@from">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
101 <xsl:sort data-type="number" select="."/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
102 </xsl:apply-templates>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
103 </xsl:when>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
104 <xsl:otherwise>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
105 <xsl:value-of select="number(/fixings/river/@from)"/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
106 </xsl:otherwise>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
107 </xsl:choose>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
108 </xsl:variable>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
109
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
110 <xsl:variable name="global-max">
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
111 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
112 <xsl:when test="count(/fixings/events/event/sector) &gt; 0">
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
113 <xsl:apply-templates mode="max" select="/fixings/events/event/sector/@to">
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
114 <xsl:sort data-type="number" select="."/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
115 </xsl:apply-templates>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
116 </xsl:when>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
117 <xsl:otherwise>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
118 <xsl:value-of select="number(/fixings/river/@to)"/>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
119 </xsl:otherwise>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
120 </xsl:choose>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
121 </xsl:variable>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
122
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
123 <xsl:template name="percent">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
124 <xsl:param name="sector"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
125
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
126 <xsl:variable name="start">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
127 <xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
128 <xsl:when test="number($sector/@from) &lt; $global-min">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
129 <xsl:value-of select="$global-min"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
130 </xsl:when>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
131 <xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
132 <xsl:value-of select="number($sector/@from)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
133 </xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
134 </xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
135 </xsl:variable>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
136
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
137 <xsl:variable name="end">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
138 <xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
139 <xsl:when test="number($sector/@to) &gt; $global-max">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
140 <xsl:value-of select="$global-max"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
141 </xsl:when>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
142 <xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
143 <xsl:value-of select="number($sector/@to)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
144 </xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
145 </xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
146 </xsl:variable>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
147
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
148 <xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
149 <xsl:when test="$end &lt; $start">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
150 <xsl:value-of select="number(0)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
151 </xsl:when>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
152 <xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
153 <xsl:value-of select="100.0 * (($end - $start) div ($global-max - $global-min))"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
154 </xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
155 </xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
156 </xsl:template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
157
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
158 <xsl:template name="emit-gap-gauge">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
159 <xsl:param name="gauge"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
160 <xsl:call-template name="internal-emit-gap">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
161 <xsl:with-param name="sector" select="$gauge"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
162 <xsl:with-param name="preds" select="$gauge/preceding-sibling::gauge"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
163 </xsl:call-template>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
164 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
165
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
166 <xsl:template name="emit-gap">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
167 <xsl:param name="sector"/>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
168 <xsl:call-template name="internal-emit-gap">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
169 <xsl:with-param name="sector" select="$sector"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
170 <xsl:with-param name="preds" select="$sector/preceding-sibling::sector"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
171 </xsl:call-template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
172 </xsl:template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
173
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
174 <xsl:template name="internal-emit-gap">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
175 <xsl:param name="sector"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
176 <xsl:param name="preds"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
177
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
178 <xsl:variable name="start">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
179 <xsl:choose>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
180 <xsl:when test="number($sector/@from) &lt; $global-min">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
181 <xsl:value-of select="$global-min"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
182 </xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
183 <xsl:otherwise>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
184 <xsl:value-of select="$sector/@from"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
185 </xsl:otherwise>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
186 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
187 </xsl:variable>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
188
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
189 <xsl:if test="$start &lt; $global-max">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
190 <xsl:variable name="num-preds" select="count($preds)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
191 <xsl:variable name="prev-end">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
192 <xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
193 <xsl:when test="count($preds) &lt; 1">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
194 <xsl:value-of select="$global-min"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
195 </xsl:when>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
196 <xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
197 <xsl:value-of select="number($preds[last()]/@to)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
198 </xsl:otherwise>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
199 </xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
200 </xsl:variable>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
201
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
202 <xsl:if test="$prev-end &lt; $global-max">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
203 <xsl:variable name="gap-len" select="$start - $prev-end"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
204 <xsl:if test="$gap-len &gt; 0.005">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
205 <div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
206 <xsl:attribute name="style">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
207 <xsl:text>width:</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
208 <xsl:value-of select="100.0 * ($gap-len div ($global-max - $global-min))"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
209 <xsl:text>%;float:left</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
210 </xsl:attribute>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
211 <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
212 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
213 </xsl:if>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
214 </xsl:if>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
215 </xsl:if>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
216 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
217
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
218 <xsl:template match="sector" mode="sectors">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
219 <xsl:call-template name="emit-gap">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
220 <xsl:with-param name="sector" select="."/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
221 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
222 <div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
223 <xsl:attribute name="style">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
224 <xsl:text>background:</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
225 <xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
226 <xsl:when test="@class = '0'">green</xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
227 <xsl:when test="@class = '1'">blue</xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
228 <xsl:when test="@class = '2'">magenta</xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
229 <xsl:when test="@class = '3'">red</xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
230 <xsl:otherwise>black</xsl:otherwise>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
231 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
232 <xsl:text>;width:</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
233 <xsl:call-template name="percent">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
234 <xsl:with-param name="sector" select="."/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
235 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
236 <xsl:text>%</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
237 <xsl:text>;float:left</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
238 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
239 <xsl:attribute name="title">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
240 <xsl:text>km </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
241 <xsl:value-of select="format-number(@from, $km-pattern, $locale)"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
242 <xsl:text> - </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
243 <xsl:value-of select="format-number(@to, $km-pattern, $locale)"/>
2531
180a500d7ddb Fixing overview: Render the Q class to the title of the sectors of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2530
diff changeset
244 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
245 <xsl:when test="@class = '0'"> / Q <xsl:value-of select="$i18n-around-mnq"/></xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
246 <xsl:when test="@class = '1'"> / Q <xsl:value-of select="$i18n-around-mq"/></xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
247 <xsl:when test="@class = '2'"> / Q <xsl:value-of select="$i18n-around-mhq"/></xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
248 <xsl:when test="@class = '3'"> / Q <xsl:value-of select="$i18n-above-hq5"/></xsl:when>
2531
180a500d7ddb Fixing overview: Render the Q class to the title of the sectors of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2530
diff changeset
249 </xsl:choose>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
250 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
251 <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
252 </div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
253 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
254
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
255 <xsl:template match="event">
2505
87ac5c532523 First part of the UI for fixing analysis parameter.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2493
diff changeset
256 <tr id="{@cid}">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
257 <xsl:if test="$render-checkboxes">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
258 <td>
2900
7715324132bf Render checked checkboxes in html event overview.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2531
diff changeset
259 <input type="checkbox" name="{$project-uuid}:{@cid}" checked="true" onclick="{$callback}"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
260 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
261 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
262 <td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
263 <xsl:apply-templates mode="sectors"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
264 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
265 <td align="center">
2530
1b6270b00c91 Fixing overview XSLT: Make the description of the event the title of the date column cells.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2505
diff changeset
266 <xsl:attribute name="title"><xsl:value-of select="@description"/></xsl:attribute>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
267 <xsl:value-of select="@date"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
268 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
269 </tr>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
270 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
271
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
272 <xsl:template match="gauge" mode="gauges">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
273 <xsl:call-template name="emit-gap-gauge">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
274 <xsl:with-param name="gauge" select="."/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
275 </xsl:call-template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
276 <div>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
277 <xsl:variable name="start">
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
278 <xsl:choose>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
279 <xsl:when test="number(@from) &lt; $global-min">
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
280 <xsl:value-of select="$global-min"/>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
281 </xsl:when>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
282 <xsl:otherwise>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
283 <xsl:value-of select="number(@from)"/>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
284 </xsl:otherwise>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
285 </xsl:choose>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
286 </xsl:variable>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
287
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
288 <xsl:variable name="end">
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
289 <xsl:choose>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
290 <xsl:when test="number(@to) &gt; $global-max">
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
291 <xsl:value-of select="$global-max"/>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
292 </xsl:when>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
293 <xsl:otherwise>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
294 <xsl:value-of select="number(@to)"/>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
295 </xsl:otherwise>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
296 </xsl:choose>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
297 </xsl:variable>
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
298
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
299 <xsl:attribute name="style">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
300 <xsl:text>overflow:hidden;background:</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
301 <xsl:choose>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
302 <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</xsl:when>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
303 <xsl:otherwise>silver</xsl:otherwise>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
304 </xsl:choose>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
305 <xsl:text>;width:</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
306 <xsl:call-template name="percent">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
307 <xsl:with-param name="sector" select="."/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
308 </xsl:call-template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
309 <xsl:text>%</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
310 <xsl:text>;float:left</xsl:text>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
311 </xsl:attribute>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
312 <xsl:attribute name="title">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
313 <xsl:value-of select="@name"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
314 <xsl:text>: km </xsl:text>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
315 <xsl:value-of select="format-number($start, $km-pattern, $locale)"/>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
316 <xsl:text> - </xsl:text>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
317 <xsl:value-of select="format-number($end, $km-pattern, $locale)"/>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
318 </xsl:attribute>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
319 <nobr><xsl:value-of select="@name"/></nobr>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
320 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
321 </xsl:template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
322
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
323 <xsl:template match="events">
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
324 <table width="97%" border="1" cellspacing="0" cellpadding="0"
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
325 style="font-size: 10pt;font-family:Arial;Verdana,sans-serif">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
326 <colgroup>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
327 <xsl:if test="$render-checkboxes">
2505
87ac5c532523 First part of the UI for fixing analysis parameter.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2493
diff changeset
328 <col width="20px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
329 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
330 <col width="*"/>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
331 <col width="75px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
332 </colgroup>
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
333 <tr>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
334 <xsl:if test="$render-checkboxes">
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
335 <th>&#160;</th>
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
336 </xsl:if>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
337 <th><xsl:apply-templates mode="gauges" select="/fixings/gauges"/></th>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
338 <th><xsl:value-of select="$i18n-event"/></th>
2912
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
339 </tr>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
340 <xsl:apply-templates/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
341 </table>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
342 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
343
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
344 <xsl:template match="/">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
345 <xsl:apply-templates/>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
346 <hr/>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
347 <table border="1" cellspacing="0" cellpadding="0">
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
348 <caption><xsl:value-of select="$i18n-legend"/></caption>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
349 <tr>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
350 <th><xsl:value-of select="$i18n-color"/></th>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
351 <th colspan="2"><xsl:value-of select="$i18n-meaning"/></th>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
352 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
353 <xsl:if test="count(/fixings/events/event/sector[@class = '0']) &gt; 0">
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
354 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
355 <td style="background: green">&#160;</td>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
356 <td><xsl:value-of select="$i18n-around-mnq"/></td>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
357 <td>Q &#8712; [0, (MNQ+MQ)/2)</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
358 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
359 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
360 <xsl:if test="count(/fixings/events/event/sector[@class = '1']) &gt; 0">
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
361 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
362 <td style="background: blue">&#160;</td>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
363 <td><xsl:value-of select="$i18n-around-mq"/></td>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
364 <td>Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
365 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
366 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
367 <xsl:if test="count(/fixings/events/event/sector[@class = '2']) &gt; 0">
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
368 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
369 <td style="background: magenta">&#160;</td>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
370 <td><xsl:value-of select="$i18n-around-mhq"/></td>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
371 <td>Q &#8712; [(MQ+MHQ)/2, HQ5)</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
372 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
373 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
374 <xsl:if test="count(/fixings/events/event/sector[@class = '3']) &gt; 0">
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
375 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
376 <td style="background: red">&#160;</td>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
377 <td><xsl:value-of select="$i18n-above-hq5"/></td>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
378 <td>Q &#8712; [HQ5, &#8734;)</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
379 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
380 </xsl:if>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
381 </table>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
382 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
383
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
384 <xsl:template match="text()"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
385 <xsl:template match="text()" mode="sectors"/>
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
386 <xsl:template match="text()" mode="gauges"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
387
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
388 </xsl:stylesheet>

http://dive4elements.wald.intevation.org