Mercurial > dive4elements > river
annotate flys-artifacts/contrib/fixoverview2html.xsl @ 3427:5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
flys-artifacts/trunk@5084 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 20 Jul 2012 09:43:55 +0000 |
parents | d6e32ae72da6 |
children | 3353672f9ba2 |
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 |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
14 <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
|
15 <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
|
16 <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
|
17 </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
|
18 </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
|
19 |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
20 <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
|
21 <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
|
22 <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
|
23 </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
|
24 </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
|
25 |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
26 <xsl:variable name="events-min"> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
27 <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
|
28 <xsl:when test="count(/fixings/events/event/sector) > 0"> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
29 <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
|
30 <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
|
31 </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
|
32 </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
|
33 <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
|
34 <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
|
35 </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
|
36 </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
|
37 </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
|
38 |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
39 <xsl:variable name="events-max"> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
40 <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
|
41 <xsl:when test="count(/fixings/events/event/sector) > 0"> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
42 <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
|
43 <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
|
44 </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
|
45 </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
|
46 <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
|
47 <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
|
48 </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
|
49 </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
|
50 </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
|
51 |
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
|
52 <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
|
53 <xsl:param name="sector"/> |
3427
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
54 <xsl:variable name="rfrom" select="number($events-min)"/> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
55 <xsl:variable name="rto" select="number($events-max)"/> |
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
|
56 <xsl:variable name="rlength" select="$rto - $rfrom"/> |
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
|
57 |
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
|
58 <xsl:variable name="sfrom" select="number($sector/@from)"/> |
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
|
59 <xsl:variable name="sto" select="number($sector/@to)"/> |
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
|
60 <xsl:variable name="slength" select="$sto - $sfrom"/> |
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
|
61 <xsl:value-of select="100.0 * ($slength div $rlength)"/> |
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
|
62 </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
|
63 |
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
|
64 <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
|
65 <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
|
66 <xsl:variable name="preds" select="$sector/preceding-sibling::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
|
67 <xsl:variable name="num-preds" select="count($preds)"/> |
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
|
68 <xsl:variable name="glength"> |
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
|
69 <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
|
70 <xsl:when test="$num-preds < 1"> |
3427
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
71 <xsl:variable name="rfrom" select="number($events-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
|
72 <xsl:value-of select="number($sector/@from) - $rfrom"/> |
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
|
73 </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
|
74 <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
|
75 <xsl:variable name="bend" select="number($preds[last()]/@to)"/> |
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
|
76 <xsl:value-of select="number($sector/@from) - $bend"/> |
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
|
77 </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
|
78 </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
|
79 </xsl:variable> |
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
|
80 <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
|
81 <xsl:when test="number($glength) < 0.05 "/> |
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
|
82 <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
|
83 <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
|
84 <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
|
85 <xsl:text>width:</xsl:text> |
3427
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
86 <xsl:variable name="rfrom" select="number($events-min)"/> |
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:variable name="rto" select="number($events-max)"/> |
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
|
88 <xsl:variable name="rlength" select="$rto - $rfrom"/> |
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
|
89 <xsl:value-of select="100.0 * ($glength div $rlength)"/> |
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
|
90 <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
|
91 </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
|
92 <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
|
93 </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
|
94 </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
|
95 </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
|
96 </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
|
97 |
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
|
98 <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
|
99 <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
|
100 <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
|
101 </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
|
102 <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
|
103 <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
|
104 <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
|
105 <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
|
106 <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
|
107 <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
|
108 <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
|
109 <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
|
110 <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
|
111 </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
|
112 <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
|
113 <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
|
114 <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
|
115 </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
|
116 <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
|
117 <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
|
118 </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
|
119 <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
|
120 <xsl:text>km </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
|
121 <xsl:value-of select="@from"/> |
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
|
122 <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
|
123 <xsl:value-of select="@to"/> |
3427
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
124 <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
|
125 <xsl:when test="@class = '0'"> / Q um MNQ</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
|
126 <xsl:when test="@class = '1'"> / Q um MQ</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
|
127 <xsl:when test="@class = '2'"> / Q um MHQ</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
|
128 <xsl:when test="@class = '3'"> / Q über HQ5</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
|
129 </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
|
130 </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
|
131 <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
|
132 </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
|
133 </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
|
134 |
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
|
135 <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
|
136 <tr id="{@cid}"> |
2632
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
137 <xsl:if test="$render-checkboxes"> |
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
138 <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
|
139 <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
|
140 </td> |
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
141 </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
|
142 <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
|
143 <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
|
144 </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
|
145 <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
|
146 <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
|
147 <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
|
148 </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
|
149 </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
|
150 </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
|
151 |
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
|
152 <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
|
153 <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
|
154 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
|
155 <colgroup> |
2632
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
156 <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
|
157 <col width="20px"/> |
2632
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
158 </xsl:if> |
7d163c2c6e6d
Improve XSL transformation for fixings overview output.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2565
diff
changeset
|
159 <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
|
160 <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
|
161 </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
|
162 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
163 <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
|
164 <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
|
165 </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
|
166 <th>km <xsl:value-of select="$events-min"/> - <xsl:value-of select="$events-max"/></th> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
167 <th>Ereignis</th> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
168 </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
|
169 <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
|
170 </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
|
171 </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
|
172 |
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
|
173 <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
|
174 <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
|
175 <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
|
176 <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
|
177 </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
|
178 <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
|
179 <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
|
180 <hr/> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
181 <table 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
|
182 <caption>Legende</caption> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
183 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
184 <th>Farbe</th> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
185 <th colspan="2">Bedeutung</th> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
186 </tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
187 <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
|
188 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
189 <td style="background: green"> </td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
190 <td>um MNQ</td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
191 <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
|
192 </tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
193 </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
|
194 <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
|
195 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
196 <td style="background: blue"> </td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
197 <td>um MQ</td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
198 <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
|
199 </tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
200 </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
|
201 <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
|
202 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
203 <td style="background: magenta"> </td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
204 <td>um MHQ</td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
205 <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
|
206 </tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
207 </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
|
208 <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
|
209 <tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
210 <td style="background: red"> </td> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
211 <td>über 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
|
212 <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
|
213 </tr> |
5f47e68a1130
FixA: Bring XSLT in sync with flys-client to ease development.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
2707
diff
changeset
|
214 </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
|
215 </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
|
216 </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
|
217 </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
|
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="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
|
221 <xsl:template match="text()" 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
|
222 |
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:stylesheet> |