View Single Post
  #3 (permalink)  
Old August 9th, 2005, 08:30 AM
kwilliams kwilliams is offline
Banned
Points: 1,561, Level: 16
Points: 1,561, Level: 16 Points: 1,561, Level: 16 Points: 1,561, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2005
Location: , , .
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Bodiam,

That's a great sugguestion, and I'll give it a try, but that doesn't solve my initial problem concerning the test methods...whether you're using xsl:if or xsl:template.

For instance, if you had this set of filters for one icon:
Thunderstorm | Light Thunderstorm Rain | Heavy Thunderstorm Rain | Thunderstorm Rain Fog/Mist | Light Thunderstorm Rain Fog/Mist | Heavy Thunderstorm Rain Fog/Mist | Thunderstorm Showers in Vicinity | | Light Thunderstorm Rain Haze | Heavy Thunderstorm Rain Haze | Thunderstorm Fog | Light Thunderstorm Rain Fog | Heavy Thunderstorm Rain Fog | Thunderstorm Light Rain | Thunderstorm Heavy Rain | Thunderstorm Rain Fog/Mist | Thunderstorm Light Rain Fog/Mist | Thunderstorm Heavy Rain Fog/Mist | Thunderstorm in Vicinity Fog/Mist | Thunderstorm Showers in Vicinity | Thunderstorm in Vicinity | Thunderstorm in Vicinity Haze | Thunderstorm Haze in Vicinity | Thunderstorm Light Rain Haze | Thunderstorm Heavy Rain Haze | Thunderstorm Fog | Thunderstorm Light Rain Fog | Thunderstorm Heavy Rain Fog | Thunderstorm Hail | Light Thunderstorm Rain Hail | Heavy Thunderstorm Rain Hail | Thunderstorm Rain Hail Fog/Mist | Light Thunderstorm Rain Hail Fog/Mist | Heavy Thunderstorm Rain Hail Fog/Mist | Thunderstorm Showers in Vicinity Hail | | Light Thunderstorm Rain Hail Haze | Heavy Thunderstorm Rain Hail Haze | Thunderstorm Hail Fog | Light Thunderstorm Rain Hail Fog | Heavy Thunderstorm Rain Hail Fog | Thunderstorm Light Rain Hail | Thunderstorm Heavy Rain Hail | Thunderstorm Rain Hail Fog/Mist | Thunderstorm Light Rain Hail Fog/Mist | Thunderstorm Heavy Rain Hail Fog/Mist | Thunderstorm in Vicinity Hail Fog/Mist | Thunderstorm Showers in Vicinity Hail | Thunderstorm in Vicinity Hail | Thunderstorm in Vicinity Hail Haze | Thunderstorm Haze in Vicinity Hail | Thunderstorm Light Rain Hail Haze | Thunderstorm Heavy Rain Hail Haze | Thunderstorm Hail Fog | Thunderstorm Light Rain Hail Fog | Thunderstorm Heavy Rain Hail Fog | Thunderstorm Small Hail/Snow Pellets | Thunderstorm Rain Small Hail/Snow Pellets | Light Thunderstorm Rain Small Hail/Snow Pellets | Heavy Thunderstorm Rain Small Hail/Snow Pellets

I normally would set it up like this:

<xsl:if test="$par_weather = 'Thunderstorm' or $par_weather = 'Light Thunderstorm Rain' or $par_weather = 'Heavy Thunderstorm Rain' or $par_weather = 'Thunderstorm Rain Fog/Mist'

 or $par_weather = 'Thunderstorm Showers in Vicinity' or $par_weather = 'Light Thunderstorm Rain Haze' or $par_weather = 'Heavy Thunderstorm Rain Haze' or $par_weather = 'Thunderstorm Fog' or $par_weather = 'Light Thunderstorm Rain Fog' or $par_weather = 'Heavy Thunderstorm Rain Fog' or $par_weather = 'Thunderstorm Light Rain' or $par_weather = 'Thunderstorm Heavy Rain' or $par_weather = 'Thunderstorm Rain Fog/Mist' or $par_weather = 'Thunderstorm Light Rain Fog/Mist' or $par_weather = 'Thunderstorm Heavy Rain Fog/Mist' or $par_weather = 'Thunderstorm in Vicinity Fog/Mist' or $par_weather = 'Thunderstorm Showers in Vicinity' or $par_weather = 'Thunderstorm in Vicinity' or $par_weather = 'Thunderstorm in Vicinity Haze' or $par_weather = 'Thunderstorm Haze in Vicinity' or $par_weather = 'Thunderstorm Light Rain Haze' or $par_weather = 'Thunderstorm Heavy Rain Haze' or $par_weather = 'Thunderstorm Fog' or $par_weather = 'Thunderstorm Light Rain Fog' or $par_weather = 'Thunderstorm Heavy Rain Fog' or $par_weather = 'Thunderstorm Hail' or $par_weather = 'Light Thunderstorm Rain Hail' or $par_weather = 'Heavy Thunderstorm Rain Hail' or $par_weather = 'Thunderstorm Rain Hail Fog/Mist' or $par_weather = 'Light Thunderstorm Rain Hail Fog/Mist' or $par_weather = 'Heavy Thunderstorm Rain Hail Fog/Mist' or $par_weather = 'Thunderstorm Showers in Vicinity Hail' or $par_weather = 'Light Thunderstorm Rain Hail Haze' or $par_weather = 'Heavy Thunderstorm Rain Hail Haze' or $par_weather = 'Thunderstorm Hail Fog' or $par_weather = 'Light Thunderstorm Rain Hail Fog' or $par_weather = 'Heavy Thunderstorm Rain Hail Fog' or $par_weather = 'Thunderstorm Light Rain Hail' or $par_weather = 'Thunderstorm Heavy Rain Hail' or $par_weather = 'Thunderstorm Rain Hail Fog/Mist' or $par_weather = 'Thunderstorm Light Rain Hail Fog/Mist' or $par_weather = 'Thunderstorm Heavy Rain Hail Fog/Mist' or $par_weather = 'Thunderstorm in Vicinity Hail Fog/Mist' or $par_weather = 'Thunderstorm Showers in Vicinity Hail' or $par_weather = 'Thunderstorm in Vicinity Hail' or $par_weather = 'Thunderstorm in Vicinity Hail Haze' or $par_weather = 'Thunderstorm Haze in Vicinity Hail' or $par_weather = 'Thunderstorm Light Rain Hail Haze' or $par_weather = 'Thunderstorm Heavy Rain Hail Haze' or $par_weather = 'Thunderstorm Hail Fog' or $par_weather = 'Thunderstorm Light Rain Hail Fog' or $par_weather = 'Thunderstorm Heavy Rain Hail Fog' or $par_weather = 'Thunderstorm Small Hail/Snow Pellets' or $par_weather = 'Thunderstorm Rain Small Hail/Snow Pellets' or $par_weather = 'Light Thunderstorm Rain Small Hail/Snow Pellets' or $par_weather = 'Heavy Thunderstorm Rain Small Hail/Snow Pellets'">
<img src="icon.jpg"... />
</xsl:if>

...and this would only be for icon when there are 20 more! I just need to know whether or not there is an alternative way of accomplishing the same thing within the test. Thanks.

KWilliams
Reply With Quote