"M. David Peterson" <m.david@xxxxxxxxxxxxx> writes:
> On Thu, 17 May 2007 13:53:31 -0600, Rien van Herpen (@Home)
> <R.van.Herpen@xxxxxxx> wrote:
>
>> Is there a way to extract the images from a RSS feed via XSL
>
> Use an extension function. A generic approach: Create a new file stream,
> access the image via the proper protocol, write the bytes to the file
> stream, close the file stream, save the file stream to disk. Dependent
> upon whether you are using .NET or Java, there are more efficients ways to
> handle this for each platform.
The XSL looks like this:
<xsl:template match="/">
<xsl:for-each select="//enclosure[starts-with(@type, 'image/')]">
<xsl:value-of select="@href"/>
</xsl:for-each>
</xsl:template>
--
Nic Ferrier
http://www.tapsellferrier.co.uk
|