XML News feed...How to incorporate into web page?

Discussion in 'Community' started by edesignuk, Apr 7, 2003.

  1. edesignuk Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #1
    I would like to make the BBC's XML news feed scroll accross the bottom of a webpage. I've been looking around for info on how to do this but can't see anything anywhere.
    This is the feed: http://www.bbc.co.uk/syndication/feeds/news/ukfs_news/world/rss091.xml

    I'd like to use the <marquee> tags to make it scroll in a web page if possible. The only language I have available to me is ASP (IIS Web Farm).

    Many thanks.
     
  2. edesignuk thread starter Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
  3. edesignuk thread starter Moderator emeritus

    edesignuk

    Joined:
    Mar 25, 2002
    Location:
    London, England
    #3
    Ok then, I'm getting there, I have this xsl stylesheet to format a local copy of the xml file I am trying to display.
    PHP:
    <?xml version="1.0" encoding="ISO-8859-1"?>

    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">

        <html>
        <style>
        .headlines {font-family:arial;color:black;}
        .title {font-family:arial;color:black;size:14pt;}
        </style>
        <body>
            <marquee>
                <span class="headlines">
                    <b>
                    News Headlines from
                    <xsl:value-of select="rss/channel/title"/> 
                    </b>
                    </span>
                    <xsl:for-each select="rss/channel/item">
                    <span class="headlines">
                    <b>
                    ~
                    </b>
                    </span>
                    <span class="headlines">
                    <xsl:value-of select="title"/>
                    <xsl:value-of select="link"/>
                </span>
                </xsl:for-each>
            </marquee>    
        </body>
        </html>

    </xsl:template>

    </xsl:stylesheet>
    It works perfectly for the local saved copy of the xml file, but that is no good. I need a way to use this stylesheet to format an xml file on another webserver (bbc.co.uk - see previous post). Is there anyone that can help me out here?
     

Share This Page