Hi,
I’m using dreamweaver to pull in a Wordpress RSS Feed onto my web page. I can’t figure out how to make it render proper HTML. In the Description Field it pulls out all of the <p> tags in the feed and displays some unknow characters instead.
Here’s my code:
<?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="http://blogs.fortlewis.edu/sponsoredresearch/feed/" -->
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY copy "©">
<!ENTITY reg "®">
<!ENTITY trade "™">
<!ENTITY mdash "—">
<!ENTITY ldquo "“">
<!ENTITY rdquo "”">
<!ENTITY pound "£">
<!ENTITY yen "¥">
<!ENTITY euro "€">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:output method="html" encoding="utf-8"/>
<xsl:param name="ItemsPerPage" select="3" />
<xsl:template match="/">
<xsl:for-each select="rss/channel/item">
<p><a href="{link}"><strong><xsl:value-of select="title"/></strong></a><br />
<xsl:value-of select="description" disable-output-escaping="yes"/></p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Here’s the output:
http://www.fortlewis.edu/test/sponsoredresearch/news.asp
Can someone point me in the right direction?