I have not used this package before... But you could have a look in twit.xml to see if there is a feed definition in there. If so, you can probably change "entry" into "item" and you should be good to go. If not.. then I don't know ;-)
Thanks Sebastiaan! I've already tried replacing "entry" with "item", "feed" with "rss" and included "channel" in different way - and nothing seems to work! No output... Thanks for your suggestion though! :)
No problem! Oh by the way, you might also need to change the "Atom:" references to convert to rss feeds instead of atom feeds. I am not familiar with the "Atom:" notation in this XSLT though.
To me it looks like you're getting your feed types mixed up. You say that it's storing in the "<feed><entry></entry></feed>" format. That looks like an ATOM feed to me.
I found a random ATOM feed and put together this XSLT file. Works fine for me:
Daniel S: The feed I need to display is not <feed><entry></entry></feed> but <rss><channel><item></item></channel></rss>. I will try out your examples.
Feed Cache trouble
Hi guys,
I needed to display an RSS feed from an external source and I found Darren Fergusons Feed Cache which seemed to be able to do the trick.
The trouble is that Fergusons XSLT is displaying XML that looks like this:
<feed>
<entry>...</entry>
<entry>...</entry>
</feed>
and the source of the feed I need to display looks like this:
<rss>
<channel>
<item>...</item>
<item>...</item>
</channel>
</rss>
My question is: How do I customize Fergusons XSLT to display the feed above:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [<!ENTITY nbsp " ">]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library Atom"
xmlns:Atom="http://www.w3.org/2005/Atom">
<xsl:variable name="y" select="document('../umbraco/plugins/FergusonMoriyama/FeedCache/twit.xml')/Atom:feed"/>
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:for-each select="$y/Atom:entry">
<p>
<em>
<xsl:value-of select="umbraco.library:FormatDateTime(Atom:published, 'MMMM d, yyyy @ H:mm')"/>
</em>
<xsl:value-of select="Atom:content" disable-output-escaping="yes"/>
</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
The package has been installed correctly (its no problem to display Fergusons Twit feed). Hope someone can help!
I have not used this package before... But you could have a look in twit.xml to see if there is a feed definition in there. If so, you can probably change "entry" into "item" and you should be good to go. If not.. then I don't know ;-)
Thanks Sebastiaan! I've already tried replacing "entry" with "item", "feed" with "rss" and included "channel" in different way - and nothing seems to work! No output... Thanks for your suggestion though! :)
No problem! Oh by the way, you might also need to change the "Atom:" references to convert to rss feeds instead of atom feeds. I am not familiar with the "Atom:" notation in this XSLT though.
The feed I want to use is also an ATOM-feed - so no problem there ;)
Hi Jonas, what is the URL of the feed you want to transform?
To me it looks like you're getting your feed types mixed up. You say that it's storing in the "<feed><entry></entry></feed>" format. That looks like an ATOM feed to me.
I found a random ATOM feed and put together this XSLT file. Works fine for me:
Forgot to mention, feedcache doesn't change the format of the feed. You can even cache ICS iCal files.
The XSLT file for an RSS-formatted feed would be as follows:
Daniel S: The feed I need to display is not <feed><entry></entry></feed> but <rss><channel><item></item></channel></rss>. I will try out your examples.
Darren: It's located at http://helpanoutdoor.dk/rss/catalog/new/sid/1/
Thanks Daniel!!!! Worked very well! :)
is working on a reply...