owen88
Programmer
- Apr 24, 2008
- 5
Hi! Ive spent the last 2 days trying to find this out and cant get anywhere. I am consuming an rss feed on my site. The problem is that the feed has to many <p> tags and id like to remove them all.
the xsl sheet ;
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="<xsl
utput method="html" indent="yes"/>
<xsl
aram name="TITLE"/>
<xsl:strip-space elements="description" />
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item">
<xsl:if test="position() < 6">
<strong><a href="{link}" target="_new"><xsl:value-of select="title"/></a></strong>
<!-- only display markup for description if it's present -->
<xsl:value-of select="description" disable-output-escaping="yes"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
please help!!!!!!
the xsl sheet ;
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="<xsl
<xsl
<xsl:strip-space elements="description" />
<xsl:template match="rss">
<!-- Do not show channel image -->
<xsl:for-each select="channel/item">
<xsl:if test="position() < 6">
<strong><a href="{link}" target="_new"><xsl:value-of select="title"/></a></strong>
<!-- only display markup for description if it's present -->
<xsl:value-of select="description" disable-output-escaping="yes"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template match="description">
<xsl:value-of select="."/>
</xsl:template>
</xsl:stylesheet>
please help!!!!!!