Avatar of Ricky11

asked on 

Use Style sheet to filter rss feed for images only??

The feed i need to parse and filter for images is


Some of the stories have images and some dont bascially i want the ones that have images?
can i use

I think i should be able to using a simple style sheet right?

below is the style sheet that i want to use for the above feed, but i dont know how to just filter the images ...

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"

<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>

<xsl:template match="rss">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item[position() &lt; 2]">



    <!-- only display markup for description if it's present

    <xsl:value-of disable-output-escaping="yes"



<xsl:template match="description">

    <xsl:value-of select="."/>

Web Languages and Standards

Avatar of undefined
Last Comment

8/22/2022 - Mon