• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

how to concatenate xml name to http file name

i am getting some help from EE to finish an asp page that displays a five day forecast
I can retrieve all thae weather data (high and low temps, as well as the day of the week and city/state)
the challenge is that I have to retrieve a graphic that represents the weather conditions (cloudy, rainy, clear, etc)

the server location of the image is

http://www.nbcweatherplus.com/sh/wxplus/icons/xhour/40x40/cloudyday.gif  < cloudy >

from this path the word "cloudy" is retrieved from the xml <icon-select>

how can I use the XML data to parse the area of the image path that changes like the examples below?
could this work to generate the correct icons?
'http://www.nbcweatherplus.com/sh/wxplus/icons/cc/40x40/' + <icon-select src="met">cloudy</icon-select>  + 'day.gif'

i've never done this, any help i can get is very much valued.


this open question is related to this:


  • 2
1 Solution
<xsl:attribute name="src">http://www.nbcweatherplus.com/sh/wxplus/icons/cc/40x40/<xsl:value-of select="icon-select"/></xsl:attribute
oops, missed the 'day.gif', but you should get the idea.
itortuAuthor Commented:

hi jkmyoung! would you check the last comment on this post please?


thank you : )
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now