I have a rss feed I am trying to transform, but it will not read the img and
a tags from within the description of each item. The rss feed can be found
at http://www.cssvault.com/gallery.xml. The xsl I am using to transform the
file is below, any help would be appreciated:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="channel">
<div class="rssFeed">
<div class="feedGeneralInfo">
<div class="feedTitle"><a href="{link}"
title="{title}"><xsl:value-of select="title" /></a></div>
<p class="feedDescription"><xsl:value-of
select="description" /></p>
</div>
<ul>
<xsl:apply-templates select="item" />
</ul>
</div>
</xsl:template>
<xsl:template match="item">
<li>
<div class="itemTitle"><a href="{link}"
title="{title}"><xsl:value-of select="title" /></a></div>
<div class="itemDescription"><xsl:apply-templates
select="img" /><xsl:apply-templates select="a" /><xsl:value-of
select="description" /></div>
</li>
</xsl:template>
<xsl:template match="img">
<div class="itemDescriptionImage"><img src="{src}" /></div>
</xsl:template>
<xsl:template match="a">
<div class="itemDescriptionLink"><a
href="{href}"><xsl:value-of select="a" /></a></div>
</xsl:template>
</xsl:stylesheet>
Thanks-
Eric Fleming
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list