annotate flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 3978:3aec5a42696a

dummy merge for repo head
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:15:54 +0200
parents c8193b600d9b
children a3b170869c77
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>
3378
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
197 <xsl:variable name="prev-to" select="number($preds[last()]/@to)"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
198 <xsl:choose>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
199 <xsl:when test="$prev-to &lt; $global-min">
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
200 <xsl:value-of select="$global-min"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
201 </xsl:when>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
202 <xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
203 <xsl:value-of select="$prev-to"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
204 </xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
205 </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
206 </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
207 </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
208 </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
209
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: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
211 <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
212 <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
213 <div>
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: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
215 <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
216 <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
217 <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
218 </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
219 <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
220 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
221 </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
222 </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
223 </xsl:if>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
224 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
225
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
226 <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
227 <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
228 <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
229 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
230 <div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
231 <xsl:attribute name="style">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
232 <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
233 <xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
234 <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
235 <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
236 <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
237 <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
238 <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
239 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
240 <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
241 <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
242 <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
243 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
244 <xsl:text>%</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
245 <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
246 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
247 <xsl:attribute name="title">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
248 <xsl:text>km </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
249 <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
250 <xsl:text> - </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
251 <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
252 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
253 <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
254 <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
255 <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
256 <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
257 </xsl:choose>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
258 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
259 <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
260 </div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
261 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
262
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
263 <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
264 <tr id="{@cid}">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
265 <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
266 <td>
2900
7715324132bf Render checked checkboxes in html event overview.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2531
diff changeset
267 <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
268 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
269 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
270 <td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
271 <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
272 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
273 <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
274 <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
275 <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
276 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
277 </tr>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
278 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
279
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
280 <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
281 <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
282 <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
283 </xsl:call-template>
3378
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
284
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
285 <div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
286 <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
287 <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
288 <xsl:choose>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
289 <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
290 <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
291 </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
292 <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
293 <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
294 <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
295 </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
296 <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
297 <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
298 </xsl:attribute>
3378
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
299
3375
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:attribute name="title">
3378
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
301 <xsl:variable name="start">
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
302 <xsl:choose>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
303 <xsl:when test="number(@from) &lt; $global-min">
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
304 <xsl:value-of select="$global-min"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
305 </xsl:when>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
306 <xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
307 <xsl:value-of select="number(@from)"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
308 </xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
309 </xsl:choose>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
310 </xsl:variable>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
311
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
312 <xsl:variable name="end">
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
313 <xsl:choose>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
314 <xsl:when test="number(@to) &gt; $global-max">
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
315 <xsl:value-of select="$global-max"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
316 </xsl:when>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
317 <xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
318 <xsl:value-of select="number(@to)"/>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
319 </xsl:otherwise>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
320 </xsl:choose>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
321 </xsl:variable>
c8193b600d9b FixA: Overview: Catch the case that a previous gauge is before the start of the events.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3377
diff changeset
322
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
323 <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
324 <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
325 <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
326 <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
327 <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
328 </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
329 <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
330 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
331 </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
332
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
333 <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
334 <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
335 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
336 <colgroup>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
337 <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
338 <col width="20px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
339 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
340 <col width="*"/>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
341 <col width="75px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
342 </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
343 <tr>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
344 <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
345 <th>&#160;</th>
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
346 </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
347 <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
348 <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
349 </tr>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
350 <xsl:apply-templates/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
351 </table>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
352 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
353
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
354 <xsl:template match="/">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
355 <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
356 <hr/>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
357 <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
358 <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
359 <tr>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
360 <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
361 <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
362 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
363 <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
364 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
365 <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
366 <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
367 <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
368 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
369 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
370 <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
371 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
372 <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
373 <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
374 <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
375 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
376 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
377 <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
378 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
379 <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
380 <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
381 <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
382 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
383 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
384 <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
385 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
386 <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
387 <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
388 <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
389 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
390 </xsl:if>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
391 </table>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
392 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
393
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
394 <xsl:template match="text()"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
395 <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
396 <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
397
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
398 </xsl:stylesheet>

http://dive4elements.wald.intevation.org