I have a page where I'm trying to display the rss feed on the page. Below is some of the stylesheet. The problem I'm running into is that I can't get the <media:thumbnail> node to display the images, while all the other content I need gets posted to the page. In researching this It might be that I'm asking for two separate namespaces at the same time - one media and the other the default xsl. I'm wondering has anyone else run into a similar issue. How do you output media nodes in the stylesheet.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<xsl:output method="html" indent="yes"/>
<xsl:param name="ItemsToShow"/>
<xsl:param name="ShowItemDate"/>
<xsl:param name="ShowItemDetails"/>
<xsl:param name="Target"/>
<xsl:template match="rss">
<xsl:for-each select="channel/item[position()<=$ItemsToShow or $ItemsToShow<1]">
<div>
<div>
<a>
<xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute>
<xsl:attribute name="target"><xsl:value-of select="$Target"/></xsl:attribute>
<img>
<xsl:choose>
<xsl:when test="media:thumbnail/@url">
<xsl:attribute name="src"><xsl:value-of select="media:thumbnail/@url" /></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">/portals/_default/images/news_feed_icon.png</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="alt"><xsl:value-of select="title" /></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="title" /></xsl:attribute>
</img>
</a>
</div>