Hi there
I have created an xsl in DW CS3. It is displaying a news feed properly with
the xml feeds title and description ..however ..I want to add the story link
from the xml to the title of each of the news headlines ... I can't seem to do
it ..as the text of the url link appears. Can anyone help with this? Below is
the xsl (without the link from xml) and the xml feed is:
http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=ALOPE&SECTIO...
thanks Rob
<?xml version="1.0" encoding="utf-8"?><!--
DWXMLSource="http://hosted.ap.org/lineups/WORLDHEADS-rss_2.0.xml?SITE=CAANR&SECT
ION=HOME" --><!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8"/>
<xsl:template match="/"><link href="Level1_Verdana.css" rel="stylesheet"
type="text/css" media="all" /><link href="Level1_Arial.css" rel="stylesheet"
type="text/css" />
<xsl:for-each select="rss/channel/item">
<table width="500" border="0">
<tr>
<td bgcolor="#CCCCCC"><xsl:value-of select="title"/></td>
</tr>
<tr>
<td><xsl:value-of select="description"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
In your XSL:
<a href="{link}"><xsl:value-of select="title" /></a>
-Darrel
-----------------------------------------------Reply-----------------------------------------------
Hey Darrel
Thanks for the quick reply. It works PERFECTLY!!! Thanks for the fix ..have a great day ..Rob