Mercurial > dive4elements > river
comparison flys-client/src/main/webapp/WEB-INF/stylesheets/fixoverview2html.xsl @ 3377:a5c790ed09bd
FixA: Bring overview transformation in sync with flys-artifacts.
flys-client/trunk@5095 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 21 Jul 2012 18:05:58 +0000 |
parents | 653dd9d7f5d5 |
children | c8193b600d9b |
comparison
equal
deleted
inserted
replaced
3376:653dd9d7f5d5 | 3377:a5c790ed09bd |
---|---|
272 <xsl:template match="gauge" mode="gauges"> | 272 <xsl:template match="gauge" mode="gauges"> |
273 <xsl:call-template name="emit-gap-gauge"> | 273 <xsl:call-template name="emit-gap-gauge"> |
274 <xsl:with-param name="gauge" select="."/> | 274 <xsl:with-param name="gauge" select="."/> |
275 </xsl:call-template> | 275 </xsl:call-template> |
276 <div> | 276 <div> |
277 <xsl:variable name="start"> | |
278 <xsl:choose> | |
279 <xsl:when test="number(@from) < $global-min"> | |
280 <xsl:value-of select="$global-min"/> | |
281 </xsl:when> | |
282 <xsl:otherwise> | |
283 <xsl:value-of select="number(@from)"/> | |
284 </xsl:otherwise> | |
285 </xsl:choose> | |
286 </xsl:variable> | |
287 | |
288 <xsl:variable name="end"> | |
289 <xsl:choose> | |
290 <xsl:when test="number(@to) > $global-max"> | |
291 <xsl:value-of select="$global-max"/> | |
292 </xsl:when> | |
293 <xsl:otherwise> | |
294 <xsl:value-of select="number(@to)"/> | |
295 </xsl:otherwise> | |
296 </xsl:choose> | |
297 </xsl:variable> | |
298 | |
277 <xsl:attribute name="style"> | 299 <xsl:attribute name="style"> |
278 <xsl:text>overflow:hidden;background:</xsl:text> | 300 <xsl:text>overflow:hidden;background:</xsl:text> |
279 <xsl:choose> | 301 <xsl:choose> |
280 <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</xsl:when> | 302 <xsl:when test="(count(preceding::*) mod 2) = 0">#ada96e</xsl:when> |
281 <xsl:otherwise>silver</xsl:otherwise> | 303 <xsl:otherwise>silver</xsl:otherwise> |
282 </xsl:choose> | 304 </xsl:choose> |
283 <xsl:text>;width:</xsl:text> | 305 <xsl:text>;width:</xsl:text> |
284 <xsl:call-template name="percent"> | 306 <xsl:call-template name="percent"> |
285 <xsl:with-param name="sector" select="."/> | 307 <xsl:with-param name="sector" select="."/> |
288 <xsl:text>;float:left</xsl:text> | 310 <xsl:text>;float:left</xsl:text> |
289 </xsl:attribute> | 311 </xsl:attribute> |
290 <xsl:attribute name="title"> | 312 <xsl:attribute name="title"> |
291 <xsl:value-of select="@name"/> | 313 <xsl:value-of select="@name"/> |
292 <xsl:text>: km </xsl:text> | 314 <xsl:text>: km </xsl:text> |
293 <xsl:value-of select="format-number(@from, $km-pattern, $locale)"/> | 315 <xsl:value-of select="format-number($start, $km-pattern, $locale)"/> |
294 <xsl:text> - </xsl:text> | 316 <xsl:text> - </xsl:text> |
295 <xsl:value-of select="format-number(@to, $km-pattern, $locale)"/> | 317 <xsl:value-of select="format-number($end, $km-pattern, $locale)"/> |
296 </xsl:attribute> | 318 </xsl:attribute> |
297 <nobr><xsl:value-of select="@name"/></nobr> | 319 <nobr><xsl:value-of select="@name"/></nobr> |
298 </div> | 320 </div> |
299 </xsl:template> | 321 </xsl:template> |
300 | 322 |