XMl newbie - How can I return specific elements from another XML?

skeetlaxa

New Member
From a weather feed I'm getting this element in an XSLT fragment:\[code\]<xsl:value-of select="data/current_condition/weatherCode"/>\[/code\]This returns a number e.g. 122I have another XML which lists the weather code details e.g.:\[code\]<condition><code>122</code><description>Overcast</description><day_icon>wsymbol_0004_black_low_cloud</day_icon><night_icon>wsymbol_0004_black_low_cloud</night_icon></condition><condition><code>119</code><description>Cloudy</description><day_icon>wsymbol_0003_white_cloud</day_icon><night_icon>wsymbol_0004_black_low_cloud</night_icon></condition>\[/code\]So how do I dynamically get e.g. code 122's description, icon etc ?
 
Back
Top