[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: ASP & XML?
- From: Marc Pidoux <list@pidoux.com>
- Date: Wed, 05 Oct 2005 20:45:38 +0900
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
Simple question but few troubles understanding the concept behind it...
sorry.
On my XSL document, I am trying to generate dynamic path to differant
images through a loop, basically by mixing html/asp with xml.
I am trying to do this, but it doesn't work of course:
<xsl:for-each select="rss/channel/item/yweather:forecast">
<xsl:value-of select="@day"/>:
<img src="/img/<xsl:value-of select='@code'/>.gif>
</xsl:for-each>
I want at the end to end up with something like:
Monday: <img src="/img/good.gif" />
Tuesday: <img src="/img/fair.gif" />
etc...
Thanks!
|