annotate gwt-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 8201:4b8c5a08de04

Make it compile again.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 05 Sep 2014 12:54:58 +0200
parents 5aa05a7a34b7
children 2a1dcee5e54a
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
5660
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
27 <xsl:variable name="i18n-gauge">
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
28 <xsl:choose>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
29 <xsl:when test="$locale = 'de'">Pegel</xsl:when>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
30 <xsl:otherwise>Gauge</xsl:otherwise>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
31 </xsl:choose>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
32 </xsl:variable>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
33
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
34 <xsl:variable name="i18n-event">
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'">Ereignis</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
37 <xsl:otherwise>Event</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-legend">
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'">Legende</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
44 <xsl:otherwise>Caption</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-color">
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'">Farbe</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
51 <xsl:otherwise>Color</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-meaning">
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'">Bedeutung</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
58 <xsl:otherwise>Meaning</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-mnq">
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 MNQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
65 <xsl:otherwise>around MNQ</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-mq">
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 MQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
72 <xsl:otherwise>around MQ</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-around-mhq">
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'">um MHQ</xsl:when>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
79 <xsl:otherwise>around MHQ</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 <xsl:variable name="i18n-above-hq5">
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
84 <xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
85 <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
86 <xsl:otherwise>above HQ5</xsl:otherwise>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
87 </xsl:choose>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
88 </xsl:variable>
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
89
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
90 <!-- TODO: Format dates according locale. -->
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
91
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
92 <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
93 <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
94 <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
95 </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
96 </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
97
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: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
99 <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
100 <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
101 </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
102 </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
103
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
104 <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
105 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
106 <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
107 <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
108 <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
109 </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
110 </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
111 <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
112 <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
113 </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
114 </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
115 </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
116
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
117 <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
118 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
119 <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
120 <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
121 <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
122 </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
123 </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
124 <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
125 <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
126 </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
127 </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
128 </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
129
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
130 <xsl:template name="percent">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
131 <xsl:param name="sector"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
132
3375
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: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
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: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
136 <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
137 </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
138 <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
139 <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
140 </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
141 </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
142 </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
143
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: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
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: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
147 <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
148 </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
149 <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
150 <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
151 </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
152 </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
153 </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
154
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: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
157 <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
158 </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
159 <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
160 <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
161 </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
162 </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
163 </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
164
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
165 <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
166 <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
167 <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
168 <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
169 <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
170 </xsl:call-template>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
171 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
172
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
173 <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
174 <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
175 <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
176 <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
177 <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
178 </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
179 </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
180
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: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
182 <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
183 <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
184
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
185 <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
186 <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
187 <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
188 <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
189 </xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
190 <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
191 <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
192 </xsl:otherwise>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
193 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
194 </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
195
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: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
197 <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
198 <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
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: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
201 <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
202 </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
203 <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
204 <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
205 <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
206 <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
207 <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
208 </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
209 <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
210 <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
211 </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
212 </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
213 </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
214 </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
215 </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
216
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: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
218 <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
219 <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
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: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
222 <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
223 <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
224 <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
225 </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
226 <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
227 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
228 </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
229 </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
230 </xsl:if>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
231 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
232
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
233 <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
234 <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
235 <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
236 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
237 <div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
238 <xsl:attribute name="style">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
239 <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
240 <xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
241 <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
242 <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
243 <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
244 <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
245 <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
246 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
247 <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
248 <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
249 <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
250 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
251 <xsl:text>%</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
252 <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
253 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
254 <xsl:attribute name="title">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
255 <xsl:text>km </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
256 <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
257 <xsl:text> - </xsl:text>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
258 <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
259 <xsl:choose>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
260 <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
261 <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
262 <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
263 <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
264 </xsl:choose>
5660
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
265 <xsl:text>&#10;</xsl:text>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
266 <xsl:value-of select="$i18n-gauge"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
267 <xsl:text>:</xsl:text>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
268 <xsl:call-template name="find-gauges">
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
269 <xsl:with-param name="start" select="@from"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
270 <xsl:with-param name="stop" select="@to"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
271 </xsl:call-template>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
272 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
273 <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
274 </div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
275 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
276
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
277 <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
278 <tr id="{@cid}">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
279 <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
280 <td>
2900
7715324132bf Render checked checkboxes in html event overview.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2531
diff changeset
281 <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
282 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
283 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
284 <td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
285 <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
286 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
287 <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
288 <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
289 <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
290 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
291 </tr>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
292 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
293
5660
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
294 <xsl:template match="text()" mode="gauge-list"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
295 <xsl:template match="gauge" mode="gauge-list">
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
296 <xsl:text> </xsl:text><xsl:value-of select="@name"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
297 </xsl:template>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
298
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
299 <xsl:template name="find-gauges">
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
300 <xsl:param name="start"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
301 <xsl:param name="stop"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
302 <xsl:apply-templates mode="gauge-list"
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
303 select="/fixings/gauges/gauge[not((number(@to) &lt; number($start)) or (number(@from) &gt; number($stop)))]"/>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
304 </xsl:template>
a3b170869c77 Workaround for flys/issue1161: Render gauge names into tooltip, too.
Sascha L. Teichmann <teichmann@intevation.de>
parents: 3378
diff changeset
305
3375
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: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
307 <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
308 <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
309 </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
310
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
311 <div>
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="style">
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: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
314 <xsl:choose>
3377
a5c790ed09bd FixA: Bring overview transformation in sync with flys-artifacts.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3376
diff changeset
315 <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
316 <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
317 </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
318 <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
319 <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
320 <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
321 </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
322 <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
323 <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
324 </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
325
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: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
327 <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
328 <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
329 <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
330 <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
331 </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
332 <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
333 <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
334 </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
335 </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
336 </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
337
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
338 <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
339 <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
340 <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
341 <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
342 </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
343 <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
344 <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
345 </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
346 </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
347 </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
348
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
349 <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
350 <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
351 <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
352 <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
353 <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
354 </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
355 <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
356 </div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
357 </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
358
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
359 <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
360 <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
361 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
362 <colgroup>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
363 <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
364 <col width="20px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
365 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
366 <col width="*"/>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
367 <col width="75px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
368 </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
369 <tr>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
370 <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
371 <th>&#160;</th>
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
372 </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
373 <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
374 <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
375 </tr>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
376 <xsl:apply-templates/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
377 </table>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
378 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
379
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
380 <xsl:template match="/">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
381 <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
382 <hr/>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
383 <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
384 <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
385 <tr>
3376
653dd9d7f5d5 FixA: Introduce i18n to overview transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3375
diff changeset
386 <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
387 <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
388 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
389 <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
390 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
391 <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
392 <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
393 <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
394 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
395 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
396 <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
397 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
398 <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
399 <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
400 <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
401 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
402 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
403 <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
404 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
405 <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
406 <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
407 <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
408 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
409 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
410 <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
411 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
412 <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
413 <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
414 <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
415 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
416 </xsl:if>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
417 </table>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
418 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
419
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
420 <xsl:template match="text()"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
421 <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
422 <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
423
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
424 </xsl:stylesheet>

http://dive4elements.wald.intevation.org