diff flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 3359:7b601099db10

FixA: Overview: Added legend at bottom of overview table. flys-client/trunk@5046 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 18 Jul 2012 17:05:02 +0000
parents 6d96443ed6e6
children 89df168f289c
line wrap: on
line diff
--- a/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl	Wed Jul 18 16:16:47 2012 +0000
+++ b/flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl	Wed Jul 18 17:05:02 2012 +0000
@@ -120,10 +120,10 @@
         <xsl:text> - </xsl:text>
         <xsl:value-of select="@to"/>
         <xsl:choose>
-          <xsl:when test="@class = '0'"> / Q &#8712; [0, (MNQ+MQ)/2) </xsl:when>
-          <xsl:when test="@class = '1'"> / Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</xsl:when>
-          <xsl:when test="@class = '2'"> / Q &#8712; [(MQ+MHQ)/2, HQ5)</xsl:when>
-          <xsl:when test="@class = '3'"> / Q &#8712; [HQ5, &#8734;)</xsl:when>
+          <xsl:when test="@class = '0'"> / Q um MNQ</xsl:when>
+          <xsl:when test="@class = '1'"> / Q um MQ</xsl:when>
+          <xsl:when test="@class = '2'"> / Q um MHQ</xsl:when>
+          <xsl:when test="@class = '3'"> / Q über HQ5</xsl:when>
         </xsl:choose>
       </xsl:attribute>
       <xsl:text disable-output-escaping="yes"><![CDATA[&nbsp;]]></xsl:text>
@@ -170,6 +170,34 @@
 
   <xsl:template match="/">
     <xsl:apply-templates/>
+    <hr/>
+    <table border="1" cellspacing="0" cellpadding="0">
+      <caption>Legende</caption>
+      <tr>
+        <th>Farbe</th>
+        <th colspan="2">Bedeutung</th>
+      </tr>
+      <tr>
+        <td style="background: green">&#160;</td>
+        <td>um MNQ</td>
+        <td>Q &#8712; [0, (MNQ+MQ)/2)</td>
+      </tr>
+      <tr>
+        <td style="background: blue">&#160;</td>
+        <td>um MQ</td>
+        <td>Q &#8712; [(MNQ+MQ)/2, (MQ+MHQ)/2)</td>
+      </tr>
+      <tr>
+        <td style="background: magenta">&#160;</td>
+        <td>um MHQ</td>
+        <td>Q &#8712; [(MQ+MHQ)/2, HQ5)</td>
+      </tr>
+      <tr>
+        <td style="background: red">&#160;</td>
+        <td>über HQ5</td>
+        <td>Q &#8712; [HQ5, &#8734;)</td>
+      </tr>
+    </table>
   </xsl:template>
 
   <xsl:template match="text()"/>

http://dive4elements.wald.intevation.org