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