If you’ve needed to display an RSS Feed in Arena, you can accomplish this using the “XML File Transform” module.  This module lets you specify an XML source and an XSLT file to use for transforming the XML.  For the XML you can enter a URL to an RSS Feed.

XSLT

In this example, I’ve set the XML File Path to the URL of the Feedburner XML feed for my “David on Arena” blog.  Even though your feed may not require a username and password, this module forces you to enter one if using a URL as the XML File Path (I guess I can call it a “Dumb Requirement” since I’m the one who coded it). 

You will need to create a new file for the XSLT file.  I created one in the XSLT folder of our Arena web site and here’s the contents of the XSLT I used

<?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="/">

    <h1><xsl:value-of select="/rss/channel/title" /></h1>
    <br />

    <div style="padding-left:20px;font-family: Verdana, Helvetica, sans-serif; font-size: 0.8em;">
      <div style="width: 80%; border: 1px solid #333; padding-left: 15px; padding-right: 15px; padding-top: 5px; padding-bottom: 5px; text-align: left;">
        <xsl:for-each select="/rss/channel/item">
          <div style="clear:both">
            <h2 class="rssTitle"><a href="{link}"><xsl:value-of select="title" /></a></h2>
            <div style="padding-left: 25px;">
              <xsl:value-of select="description" disable-output-escaping="yes" />
            </div>
          </div>
        </xsl:for-each>
      </div>
    </div>

  </xsl:template>

</xsl:stylesheet>

If you’ve never used XSLT transformation before, it can take a bit to get used to, but there’s lots of resources available for learning the syntax.

The Final Result…

rss_in_arena

Leave a Reply

*