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 FeedsRSS News feed XSL transformation issueRSS News feed XSL transformation issue
Previous
 
Next
New Post
7/7/2008 2:39 PM
 

Hi everyone,

I have been trying to get an RSS news feed into our Intranet DNN site. I am having problems to apply the XSL transformation to the following feed:

http://www.wyndhamworldwide.com/media_center/pr/feed_server.cfm?category=1&language=en&format=rss1

The feed is displayed in RSS module but in a raw HTML format. I have used XSL samples from DNN on net, but I amd still having problems with it.

Could anyone help me with the issue? or at least give me a hint as to have to adjust my XSL code?

Thanks in advance

 
New Post
7/8/2008 11:18 AM
 

You might try saving this file to your server and trying it out.

http://sccaforums.com/xml-short.xsl

 


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
7/8/2008 3:29 PM
 

See your previous post for an example that I use for these types of feeds. www.dotnetnuke.com/Community/Forums/tabid/795/forumid/48/threadid/240384/scope/posts/Default.aspx

For the record, though, I don't know what xsl you are using but the default DNN xsl will not give you a very good transform on this type of newsfeed, as it is coded to transform rss v0.91 feeds, and the example you give is actually an RDF feed.  So, if you just use the default, you get just the content within the tags, not really HTML at all, but the actual content.  See the above previous post, and you'll get an xsl example that I use for a starting point to transform basic rss, rdf, and atom feeds.

 
New Post
7/9/2008 4:40 PM
 

Let me thank you for your much needed hint for my problem with the XSLT file. Your hint put me in the right direction for researching and fixing the problem. As you noted, I was not seeing the HTML tag but the acutal content. Researching the RDF and Dublin Core gave me the answer. I am posting my XSL file result, in case anybody else faces similar problem; it's working fine for me now. thanks :)

<?xml version='1.0'?>
<xsl:stylesheet
  version="1.0" exclude-result-prefixes="rdf rss l dc admin content xsl"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:rss="http://purl.org/rss/1.0/"
                xmlns:dc="http://purl.org/dc/elements/1.1/"
                  xmlns:admin="http://webns.net/mvcb/"
                  xmlns:l="http://purl.org/rss/1.0/modules/link/"
                  xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <xsl:output omit-xml-declaration="yes"/>
    <xsl:template match="/rdf:RDF">
 
   <!-- Do not show channel image -->
   <table>
          <xsl:for-each select="rss:item">
           <tr>
                <td nowrap="nowrap">
                     <em><xsl:value-of select="concat(substring(dc:date, 9, 2), '-', substring(dc:date, 6, 2), '-', substring(dc:date, 1, 4))" /></em>
           </td>
           <td>
                     <xsl:text> - </xsl:text>
  </td>
         <td>
        <a href="{rss:link}" target="_new">
                       <xsl:value-of select="rss:title" />
                    </a>
                </td>
           </tr>
        <tr>
     <td colspan="3"> 
             <hr/>
            </td>
    </tr> 
   </xsl:for-each>
  </table>
   </xsl:template>
</xsl:stylesheet>

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsRSS News feed XSL transformation issueRSS News feed XSL transformation issue


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