Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

how to concatenate xml name to http file name

Posted on 2006-05-09
3
Medium Priority
?
213 Views
Last Modified: 2008-03-10
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
Comment
Question by:itortu
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
jkmyoung earned 400 total points
ID: 16643045
<img>
<xsl:attribute name="src">http://www.nbcweatherplus.com/sh/wxplus/icons/cc/40x40/<xsl:value-of select="icon-select"/></xsl:attribute
</img>
0
 
LVL 12

Expert Comment

by:jkmyoung
ID: 16643066
oops, missed the 'day.gif', but you should get the idea.
0
 

Author Comment

by:itortu
ID: 16643291

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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Screencast - Getting to Know the Pipeline
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question