I have an XSL file that is being applied to an RSS feed, and it works great
except for 2 things:
1.) XSL doesn't close the <img> tag for xhtml even though I have it being
closed in the XSL file (I've tried <img /> and <img></img>). This blows my
xhtml compatibility.
2.) Also, the RSS feed has a namespace "dc", how do I extract data from the
elements have a dc namespace? I've tried:
<div class="bodysm"><i><xsl:value-of select="dc:creator" /></i></div> <!--
Didn't work -->
Do I need to specify the namespace for xhtml somewhere?
I'm new to XSLT, so I apologize for elementary questions.
<XslFile />
---------------------------------------------------
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="utf-8" />
<xsl:template match="/rss/channel">
<a href="{image/link}" target="_blank"><img alt="{image/title}"
src="{image/url}"
style="border:0px;height:{image/height}px;width:{image/width}px;" /></a>
<div>
<div><i><a class="rssfeeders" href="{link}"><xsl:value-of
select="description" /></a></i></div>
<div><i><xsl:value-of select="lastBuildDate" /></i></div>
</div>
<p />
<xsl:for-each select="item">
<div><a href="{link}" target="_blank"><b><xsl:value-of select="title"
/></b></a></div>
<div><i><xsl:value-of select="dc:creator" /></i></div><!-- LINE OF
INTEREST -->
<div><i><xsl:value-of select="pubDate" /></i></div><p />
</xsl:for-each>
<p />
</div>
</xsl:template>
</xsl:stylesheet>