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 ForumsXMLXMLMissing SRC from IMG TagMissing SRC from IMG Tag
Previous
 
Next
New Post
2/11/2010 11:24 AM
 

I am using the XML module to render an XML news feed on a website.  However, I am running into an issue with it.  I am using XSLT to generate a UL of the news items in the feed, including their thumbnail.  When I test this in Visual Studio, everything looks fine.  The IMG tag has it's SRC as expected.  However, when this same XSLT is run in the XML module renders IMG tags with the SRC attribute empty. 

Please let me know if you are having the same issue and/or if there is a way to fix this.

Here is the XML feed I am consuming:  http://feeds.orlandosentinel.com/lifestyle/features/columnists/ssmith

Here is the XSLT I am using:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:media="http://search.yahoo.com/mrss/">
    <xsl:template match="/rss/channel">
        <ul class="news_list">
            <xsl:for-each select="item">
                <li class="Normal">
                    <h3>
                        <a href="{link}" target="_blank">
                            <xsl:value-of select="title" disable-output-escaping="no"/>
                        </a>
                    </h3>
                    <p class="Normal">
                        <img src="{media:thumbnail/@url}" alt="" align="left" />
                        <xsl:value-of select="description" disable-output-escaping="yes"/>
                        <br />
                        <a href="{link}" target="_blank">
                            continue reading...
                        </a>
                    </p>
                </li>
            </xsl:for-each>
        </ul>
        <script language="javascript" type="text/javascript">
            jQuery(document).ready(function (){
                jQuery('ul.news_list li p[class!=\'Normal\']').remove();
                jQuery('.feedflare').remove();
            });
        </script>
    </xsl:template>
</xsl:stylesheet>

 


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/11/2010 1:24 PM
 
Hi Will, I cant see any media:thumbnail nodes in the provided feed, but some media:content. Are you sure that you are working offline with the same feed as the current one?
 
New Post
2/13/2010 7:49 PM
 

You're right.  It's no longer there.  It was there when I first rolled out that XSLT, but it appears that they had since removed it from their feed.  :(  I switched to the media:content@url element.  Thanks!


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLMissing SRC from IMG TagMissing SRC from IMG Tag


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