annotate flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 3375:87c0a06743b8

FixA: Overview contains names of the the gauges in the headline. flys-client/trunk@5089 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 20 Jul 2012 14:09:53 +0000
parents 89df168f289c
children 653dd9d7f5d5
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
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
12 <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
13 <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
14 <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
15 </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
16 </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
17
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
18 <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
19 <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
20 <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
21 </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
22 </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
23
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
24 <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
25 <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
26 <xsl:when test="count(/fixings/events/event) &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
27 <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
28 <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
29 </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
30 </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
31 <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
32 <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
33 </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
34 </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
35 </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
36
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
37 <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
38 <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
39 <xsl:when test="count(/fixings/events/event) &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
40 <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
41 <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
42 </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
43 </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
44 <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
45 <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
46 </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
47 </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
48 </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
49
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
50 <xsl:template name="percent">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51 <xsl:param name="sector"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
52
3375
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
53 <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
54 <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
55 <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
56 <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
57 </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
58 <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
59 <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
60 </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
61 </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
62 </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
63
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
64 <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
65 <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
66 <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
67 <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
68 </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
69 <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
70 <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
71 </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
72 </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
73 </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
74
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
75 <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
76 <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
77 <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
78 </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
79 <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
80 <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
81 </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
82 </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
83 </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
84
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
85 <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
86 <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
87 <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
88 <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
89 <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
90 </xsl:call-template>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
91 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
92
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
93 <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
94 <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
95 <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
96 <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
97 <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
98 </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
99 </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
100
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
101 <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
102 <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
103 <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
104
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
105 <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
106 <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
107 <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
108 <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
109 </xsl:when>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
110 <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
111 <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
112 </xsl:otherwise>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
113 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
114 </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
115
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
116 <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
117 <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
118 <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
119 <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
120 <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
121 <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
122 </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
123 <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
124 <xsl:value-of select="number($preds[last()]/@to)"/>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
125 </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
126 </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
127 </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
128
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: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
130 <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
131 <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
132 <div>
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: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
134 <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
135 <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
136 <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
137 </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
138 <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
139 </div>
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:if>
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:if>
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:if>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
143 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
144
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
145 <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
146 <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
147 <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
148 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
149 <div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
150 <xsl:attribute name="style">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
151 <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
152 <xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
153 <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
154 <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
155 <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
156 <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
157 <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
158 </xsl:choose>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
159 <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
160 <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
161 <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
162 </xsl:call-template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
163 <xsl:text>%</xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
164 <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
165 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
166 <xsl:attribute name="title">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
167 <xsl:text>km </xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
168 <xsl:value-of select="@from"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
169 <xsl:text> - </xsl:text>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
170 <xsl:value-of select="@to"/>
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
171 <xsl:choose>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
172 <xsl:when test="@class = '0'"> / Q um MNQ</xsl:when>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
173 <xsl:when test="@class = '1'"> / Q um MQ</xsl:when>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
174 <xsl:when test="@class = '2'"> / Q um MHQ</xsl:when>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
175 <xsl:when test="@class = '3'"> / Q über 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
176 </xsl:choose>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
177 </xsl:attribute>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
178 <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
179 </div>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
180 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
181
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
182 <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
183 <tr id="{@cid}">
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
184 <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
185 <td>
2900
7715324132bf Render checked checkboxes in html event overview.
Raimund Renkert <raimund.renkert@intevation.de>
parents: 2531
diff changeset
186 <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
187 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
188 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
189 <td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
190 <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
191 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
192 <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
193 <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
194 <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
195 </td>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
196 </tr>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
197 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
198
3375
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: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
200 <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
201 <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
202 </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
203 <div>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
204 <xsl: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
205 <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
206 <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
207 <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</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
208 <xsl:otherwise>gray</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
209 </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
210 <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
211 <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
212 <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
213 </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
214 <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
215 <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
216 </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
217 <xsl:attribute name="title">
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
218 <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
219 <xsl:text>: km </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 <xsl:value-of select="@from"/>
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: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
222 <xsl:value-of select="@to"/>
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:attribute>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
224 <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
225 </div>
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:template>
87c0a06743b8 FixA: Overview contains names of the the gauges in the headline.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3361
diff changeset
227
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
228 <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
229 <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
230 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
231 <colgroup>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
232 <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
233 <col width="20px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
234 </xsl:if>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
235 <col width="*"/>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
236 <col width="75px"/>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
237 </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
238 <tr>
2913
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
239 <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
240 <th>&#160;</th>
6d96443ed6e6 FixA: Overview: render column header too when rendering checkboxes.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2912
diff changeset
241 </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
242 <th><xsl:apply-templates mode="gauges" select="/fixings/gauges"/></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
243 <th>Ereignis</th>
329db21372ba FixA: Extent of overview is determined by min/max km of sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2900
diff changeset
244 </tr>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
245 <xsl:apply-templates/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
246 </table>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
247 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
248
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
249 <xsl:template match="/">
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
250 <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
251 <hr/>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
252 <table border="1" cellspacing="0" cellpadding="0">
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
253 <caption>Legende</caption>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
254 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
255 <th>Farbe</th>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
256 <th colspan="2">Bedeutung</th>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
257 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
258 <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
259 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
260 <td style="background: green">&#160;</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
261 <td>um MNQ</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
262 <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
263 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
264 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
265 <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
266 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
267 <td style="background: blue">&#160;</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
268 <td>um MQ</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
269 <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
270 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
271 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
272 <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
273 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
274 <td style="background: magenta">&#160;</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
275 <td>um MHQ</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
276 <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
277 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
278 </xsl:if>
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
279 <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
280 <tr>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
281 <td style="background: red">&#160;</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
282 <td>über HQ5</td>
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
283 <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
284 </tr>
3361
89df168f289c FixA: Overview: Generate only legend entries for existing discharge sectors.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 3359
diff changeset
285 </xsl:if>
3359
7b601099db10 FixA: Overview: Added legend at bottom of overview table.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents: 2913
diff changeset
286 </table>
2493
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
287 </xsl:template>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
288
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
289 <xsl:template match="text()"/>
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
290 <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
291 <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
292
f905c936ffff Added the XSL transformation to generate the fixings overview.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
293 </xsl:stylesheet>

http://dive4elements.wald.intevation.org