Home     |     Photoshop    |     Flash General    |     Flash Actionscript    |     Dreamweaver    |     Macromedia Fireworks


Cervo Technologies
The Right Source to Outsource

Macromedia Dreamweaver

xml xsl help needed


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   "&#160;">
        <!ENTITY copy   "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro   "&#8364;">
 ]>
 <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>

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

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

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc