Skip to main content
Inspiring
July 18, 2006
Question

Help with RSS feed in home page

  • July 18, 2006
  • 5 replies
  • 349 views
I'm trying to place an RSS feed in my home page. I've followed this Dev
Center guide: http://tinyurl.com/ewbdv

I've gotten everything to work perfectly locally. However, when I upload
the files it won't work online here: http://tinyurl.com/ootyn

The error I receive is:

Could not find the ColdFusion Component
burnettcom.includes.MM_XSLTransform.MM_XSLTransform.
Please check that the given name is correct and that the component
exists. The error occurred in
C:\domains\burnettcom.com\wwwroot\home.cfm: line 28
26 : <!--- XSL Transformation --->
27 : <cfinvokeargument name="xml"
value=" http://www.burnettcom.com/blog/?feed=rss2">
28 : <cfinvokeargument name="xsl" value="headlines.xsl">
29 : </cfinvoke></div><!---end posts--->


Instead of the path burnettcom.includes.MM_XSLTransform.MM_XSLTransform.
shouldn't it be burnettcom/includes/MM_XSLTransform/MM_XSLTransform.cfm

This is the only thing that I can see that would be wrong.

Can anyone help me to get this to work online?

Thanks in advance.
    This topic has been closed for replies.

    5 replies

    Participating Frequently
    July 19, 2006
    ahh i gotcha.. hmm.. not sure about that one. Havent dont much with XSLT and XML to date, sorry.
    Inspiring
    July 19, 2006
    A3gis wrote:
    > The date should be in that format, it allows feed readers to convert the date
    > and time into a stamp relative to the reader's configured timezone.
    >
    > PS: if you're using firefox, make sure you have the Web Developer Extension:
    > http://chrispederick.com/work/webdeveloper/
    >
    > It has a tools menu which includes an RSS validator amongst other things...
    > very handy :)
    >

    Yeah, the web dev toolbar is so nice. I couldn't live without it.

    The thing is, I don't want feed readers to get that portion of my RSS, I
    want it to be displayed on my home page in the format mentioned in the
    previous post.

    If people want to point their newsreader to my RSS feed I understand
    that their newsreader would format the time feed to its specifications.

    I don't want to change the source feed (as that would invalidate it) but
    only the way the date is displayed on my home page.


    Is there a way to do this?
    Participating Frequently
    July 19, 2006
    The date should be in that format, it allows feed readers to convert the date and time into a stamp relative to the reader's configured timezone.

    PS: if you're using firefox, make sure you have the Web Developer Extension: http://chrispederick.com/work/webdeveloper/

    It has a tools menu which includes an RSS validator amongst other things... very handy :)
    Inspiring
    July 19, 2006
    Thanks A3gis, I just got that part working. I've configured it to
    display the title and date for each post.

    The only problem is that the date appears as:

    Tue, 18 Jul 2006 04:38:07 +0000

    I would prefer the date to appear as:

    July 18, 2006

    or

    6.18.06

    Does anyone know how to make this work?

    P.S. Here's the xls file:

    P.S. my XSL fragment is:

    <?xml version="1.0" encoding="iso-8859-1"?><!--
    DWXMLSource=" http://www.burnettcom.com/blog/?feed=rss2" -->
    <!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"
    xmlns:wfw=" http://wellformedweb.org/CommentAPI/"
    xmlns:content=" http://purl.org/rss/1.0/modules/content/"
    xmlns:dc=" http://purl.org/dc/elements/1.1/">
    <xsl:output method="html" encoding="iso-8859-1"/>

    <xsl:param name="ItemsPerPage" select="10" />

    <xsl:template match="/">

    <xsl:for-each select="rss/channel/item[position() &lt;= $ItemsPerPage]">
    <xsl:sort select="dc:date" order="descending" />
    <p>
    <a href="{link}"><xsl:value-of select="title"/>
    </a><br />
    <xsl:value-of select="pubDate"/>
    </p>
    </xsl:for-each>

    </xsl:template>
    Participating Frequently
    July 19, 2006
    Can't seem to find an error at the site you pointed to... if I go through to the blog and click on the RSS feed links in the sidebar, they open XML files. The ones down the bottom of the page dont work though.. because of the feed: http:// perhaps?

    Beyond that though, the error you mention looks like the server is missing part of the components it needs to process the file. Maybe make sure you've uploaded everything to the server.