My revised Atom XSLT… solves the problem with escaped content.

<?xml version=”1.0″?>
<xsl:stylesheet version=”1.0″ xmlns:xsl=”http://www.w3.org/1999/XSL/Transform&#8221; xmlns:atom=”http://purl.org/atom/ns#”&gt;
<xsl:output method=”xml” indent=”yes” omit-xml-declaration=”yes”/>
<xsl:preserve-space elements=”div”/>
<xsl:preserve-space elements=”content”/>
<xsl:template match=”atom:feed”>
<html>
<body>
<xsl:for-each select=”atom:entry”>
<p>
<a href=”{atom:link[2]/@href}” target=”_blank”>
<font size=”+1″>
<b>
<xsl:value-of select=”atom:link[2]/@title”/>
</b>
</font>
</a>
<br/>
<xsl:for-each select=”atom:author”>
By
<b>
<xsl:value-of select=”atom:name”/>
</b>
<br/>
</xsl:for-each>
<br/>
<xsl:if test=”atom:issued”>
Published:
<b>
<xsl:value-of select=”atom:issued”/>
</b>
<br/>
</xsl:if>
<br/>
<!–Beginning of Content–>
<xsl:if test=”not(atom:content/@mode=’escaped’)”>
<xsl:value-of select=”atom:content” disable-output-escaping=”no”/>
</xsl:if>
<xsl:if test=”(atom:content/@mode=’escaped’)”>
<xsl:value-of select=”atom:content” disable-output-escaping=”yes”/>
</xsl:if>
<!–End of Content–>
</p>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.