• 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.

itortu.

this open question is related to this:

http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21843837.html#16642318

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

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

http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21843837.html

thank you : )
0
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