Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsConsuming a Blogger blogConsuming a Blogger blog
Previous
 
Next
New Post
2/12/2009 9:31 AM
 

I've been looking for a valid XSL file to format a blogger feed which was sent blog posts through email from Outlook 2007. I found one that Phil put together a couple of years ago, but it is not working properly. I think this is because the atom format from Blogger has changed since then. I'm a complete newbie when it comes to formating XML with a stylesheet so if any one has a working one that will display the title and the content as that is all I need in the news module then that would be great.

 

 

Thanks

Bruce 

 
New Post
2/12/2009 12:42 PM
 

Hiya Bruce,

Can you give me a sample of the xml file?  Which news module version are you using?  At this point, v4.0.1 is not transforming Atom feeds, so I'd need the example to check the atom feed type.  As an alternative, have you tried using the XML/XSL module?  It might work  if all things are good.

 
New Post
2/12/2009 7:51 PM
 

Well I'll post what I was using at the end of this, but its a mute point at the moment, because I was using 3.something on this install and I decided today that my problem must be that I needed to upgrade to the latest version and now I know why it broke and would not read the feed at all after that. I guess I'll need to uninstall it and go back to the other version.

<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:rss="http://purl.org/rss/1.0/" xmlns:rss09="http://my.netscape.com/rdf/simple/0.9/" exclude-result-prefixes="xsl rdf dc rss rss09 atom">
- <!-- All_In_One - a bit more advanced stylesheet - Phil 'iwonder' Guerra
-->
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" />
- <xsl:template match="/">
- <div>
<xsl:apply-templates select="rdf:RDF/rss:channel" />
<xsl:apply-templates select="rdf:RDF/rss09:channel" />
<xsl:apply-templates select="/atom:feed" />
<xsl:apply-templates select="rss/channel" />
- <xsl:if test="rdf:RDF/rss:item">
- <ul>
<xsl:apply-templates select="rdf:RDF/rss:item" />
</ul>
</xsl:if>
- <xsl:if test="rdf:RDF/rss09:item">
- <ul>
<xsl:apply-templates select="rdf:RDF/rss09:item" />
</ul>
</xsl:if>
</div>
</xsl:template>
- <xsl:template match="rss:channel">
<xsl:variable name="link" select="rss:link" />
<xsl:variable name="description" select="rss:description" />
<xsl:variable name="image" select="/rdf:RDF/rss:image/rss:url" />
- <xsl:if test="$image">
<img src="{$image}" style="float: right; margin: 2px;" />
</xsl:if>
- <h2>
- <a href="{$link}">
<xsl:value-of select="rss:title" />
</a>
</h2>
- <h3>
<xsl:value-of select="rss:description" />
</h3>
<hr />
</xsl:template>
- <xsl:template match="rss09:channel">
<xsl:variable name="link" select="rss09:link" />
<xsl:variable name="description" select="rss09:description" />
<xsl:variable name="image" select="/rdf:RDF/rss09:image/rss09:url" />
- <xsl:if test="$image">
<img src="{$image}" style="float: right; margin: 2px;" />
</xsl:if>
- <h3>
- <a href="{$link}">
<xsl:value-of select="rss09:title" />
</a>
</h3>
- <h4>
<xsl:value-of select="rss:description" />
</h4>
<hr />
</xsl:template>
- <xsl:template match="channel">
<xsl:variable name="link" select="link" />
<xsl:variable name="description" select="description" />
<xsl:variable name="image" select="image/url" />
- <xsl:if test="$image">
<img src="{$image}" style="float: right; margin: 2px;" />
</xsl:if>
- <h3>
- <a href="{$link}" title="{$description}">
<xsl:value-of select="title" />
</a>
</h3>
<hr />
- <ul>
<xsl:apply-templates select="item" />
</ul>
</xsl:template>
- <xsl:template match="item">
<xsl:variable name="item_link" select="link" />
<xsl:variable name="item_title" select="description" />
- <li>
- <a href="{$item_link}" title="{$item_title}">
<xsl:value-of select="title" />
</a>
</li>
</xsl:template>
- <xsl:template match="rss:item">
<xsl:variable name="item_link" select="rss:link" />
<xsl:variable name="item_title" select="rss:description" />
- <li>
- <a href="{$item_link}">
<xsl:value-of select="rss:title" />
</a>
</li>
- <h4>
<xsl:value-of select="rss:description" disable-output-escaping="yes" />
</h4>
</xsl:template>
- <xsl:template match="rss09:item">
<xsl:variable name="item_link" select="rss09:link" />
<xsl:variable name="item_title" select="rss09:description" />
- <li>
- <a href="{$item_link}" title="{$item_title}">
<xsl:value-of select="rss09:title" />
</a>
</li>
</xsl:template>
- <xsl:template match="/atom:feed">
- <div class="syndication-content-area">
- <div class="syndication-title">
<xsl:value-of select="atom:title" />
</div>
- <div class="syndication-description">
<xsl:value-of select="atom:tagline" />
</div>
- <ul class="syndication-list">
<xsl:apply-templates select="atom:entry" />
</ul>
</div>
</xsl:template>
- <xsl:template match="atom:entry">
- <li class="syndication-list-item">
- <b>
<xsl:value-of select="atom:title" />
</b>
- <div>
- <span class="syndication-list-item-date">
(Updated:
<xsl:value-of select="atom:updated" />
)
</span>
</div>
- <span class="syndication-list-item-description">
<xsl:value-of select="atom:description" />
</span>
</li>
</xsl:template>
</xsl:stylesheet>

 
New Post
2/13/2009 2:00 PM
 

Ah, yes, that kinda hurt a lot of folks.  So many variables with the actual feeds that changing to the latest version of the News module really caused issues with using many sites.  What I really need, though is an example of the actual feed, not the XSL (which I actually wrote, so I have it).  I'm not sure which 'blogger feed you are using'.  My own blog, uses an Atom v1.0 feed structure, which the xsl you have should display w/o issue. 

Can you give me an example URL for a feed that's similar to the one you are having the issue, or supply the xml generated, just the beginning, and at least 1 entry would suffice to see what is happening.  I've got these kinds of feeds working in the XML/XSL module, so it is possible to render, but not in the newest version of the News module v.4.0.x.

 
New Post
2/13/2009 3:32 PM
 

Oh, I see now. This is the blogger blog I set up. There is really not much content on it at the moment as I'm still testing. How do you change the feed structure in blogger to Atom v1.0? I have not seen an option to change it.

 

I've tried both

http://ctcconsolidation.blogspot.com/feeds/posts/default

and http://ctcconsolidation.blogspot.com/atom.xml

but I still get the same results and it displays all the html from the outlook email. What I am trying to do is, one of the people here wants someone to be able to submit a feedback suggestion anomyously and it go to the President's email. He wants to be able to just reply to the email and it post automatically. I figured if I can get this to working so he replies to the blogger blog. That way I don't have to try and write up something special for this.

 

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsConsuming a Blogger blogConsuming a Blogger blog


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out