|
Subject: Re: [xsl] Retrieve images from a RSS feed From: Nic James Ferrier <nferrier@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 18 May 2007 09:28:48 +0100 |
"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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Retrieve images from a RS, M. David Peterson | Thread | RE: [xsl] Retrieve images from a RS, Rien van Herpen \(@H |
| Re: [xsl] Retrieve images from a RS, M. David Peterson | Date | RE: [xsl] Retrieve images from a RS, Rien van Herpen \(@H |
| Month |