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

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="" xmlns:atom="">
<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">
<xsl:for-each select="atom:entry">
<a href="{atom:link[2]/@href}" target="_blank">
<font size="+1">
<xsl:value-of select="atom:link[2]/@title"/>
<xsl:for-each select="atom:author">
<xsl:value-of select="atom:name"/>
<xsl:if test="atom:issued">
<xsl:value-of select="atom:issued"/>
<!--Beginning of Content-->
<xsl:if test="not(atom:content/@mode='escaped')">
<xsl:value-of select="atom:content" disable-output-escaping="no"/>
<xsl:if test="(atom:content/@mode='escaped')">
<xsl:value-of select="atom:content" disable-output-escaping="yes"/>
<!--End of Content-->

Leave a Reply

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

You are commenting using your 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.