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 FeedsBad formatting, XSL not working.Bad formatting, XSL not working.
Previous
 
Next
New Post
9/3/2008 4:24 PM
 

I have been fighting news feed issues for a couple of days now. I figured out two of my problems thanks to some very knowledgeable and helpful folks on here. However, I can't figure out why the top feed on the left looks so bad. I have applied the same XSL style sheet to it as the one on the bottom of the column, which is the BBC America news feed.

The bottom one looks great, the top one does not. It is an internal feed but should still be able to use the same style sheets, I would assume. I have it set to use the DNN default XSL file right now and it still doesn't work right.

Could anyone help me with this? Any help at all would be appreciated. I am not even sure how to describe this problem. I have had to roll back to an earlier version of the module and then find XSL code all over the place to solve my other problems. The feed in quesiton seems to work,  I just can't get any of my XSL files to make it look right for some reason.

http://www.actionnews17.com/Home/tabid/36/Default.aspx

Beth Vest

 
New Post
9/4/2008 7:30 AM
 

What module are you using to create the internal feed?  I really can't tell and it would matter a bunch.  Many 3rd party and even some standard DNN modules use their own 'flavor' of creating news feeds.  In order to troubleshoot feeds, I always begin by analyzing the news source to study its' structrure, then I can understand how best to transform it.

From what I can see, it looks like you need a bit of customization to translate the HTML source or eliminate it entirely.  I can't tell you what the best approach would be without the news source though. The default dnn xsl doesn't allow escaping of HTML so it appears as just the characters < becomes &lt; and so on, which is what you are seeing.  The simple way to translate HTML is to just modify the element in your xsl that your need to translate by including something like this example that disables output escapting on a 'description' element...

<xsl:value-of select="description" disable-output-escaping="yes" />

More specifc examples can be found in my posts, and on a very friendly DNN site, DNN Creative...

www.dnncreative.com/RSSNewsFeedXSLStylesheet/tabid/162/Default.aspx

Here's a link to an example of removing HTML from a news source...

blog.thekid.me.uk/archive/2007/05/17/stripping-html-tags-when-using-xslt.aspx

And another that explains, probably more than you want about xsl, including a secition of disabling output escaping...

www.w3.org/TR/xsl

 

Hope that gets you pointed in the right direction....

Cheers

 
New Post
9/4/2008 9:59 AM
 

I am using version 3.01.01. I had installed the newest version, but it had too many problems so I had to roll back. 

The feed is coming from a internal file where I syndicated the articles module you see right nest to the news feed. I am glad the feed at least works.

Yes, I am using the default style sheet provided by DNN. I Actually tried several, a couple of them yours that I got from Dnn Creative ( I think) and the DNN forum. You provided an all purpose style sheet that creates a dandy bullet list and covers every kind of feed under the sun. When I use that one, the only thing that shows in that top module is (iwonder All_In_One) which is strange. That style sheet works wonderfully on my external feeds. I think the XML file is really the problem and I have to find a fix using the XSL file.

I am using a modified version one of your other style sheets on the bottom feed and it looks great.  No style sheet seems to work on the top one. I am going to try your advice and see what happens. I hope that works. I have learned more about style sheets in the last couple of days complements of your examples. You would think DNN would provide something like an all in one style sheet since there are now so many versions of new feeds out there.

I am hoping that this has nothing to do with the fact that this is an interal feed from a file created using DNN's own syndication capability. Since the feed does technically work, I am going to keep trying the XSL approach to fix it.  I can't thank you enough for the examples you have out there, at least that gives me some clue of how to work on this problem.

Beth Vest

 
New Post
9/4/2008 11:16 AM
 

I have tried everything to make this work. Nothing seems to do the trick. This shouldn't be such a problem with a core module. Maybe there is another way to create the feed? I am no xml expert and hate to spend this week boning up so I can make a simple internal news feed actually work with the core news feed module.

Beth Vest

 
New Post
9/4/2008 2:02 PM
 

I agree totally, it should not be that difficult and all DNN internal modules should be required to work with the standard xsl provided, otherwise why provide it? Right.  Unfortunately, folks do what do and we're stuck with it.  I'll see what I can find out about how the module creates the feed.  What version of DNN are you using?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsBad formatting, XSL not working.Bad formatting, XSL not working.


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