[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Retrieve images from a RSS feed
Subject: RE: [xsl] Retrieve images from a RSS feed From: "Rien van Herpen \(@Home\)" <R.van.Herpen@xxxxxxx> Date: Fri, 18 May 2007 11:02:42 +0200 |
Hello Nic, With this it's still not possible to extract the image to a local disk. Or I'm wrong ? Regards Rien. -----Oorspronkelijk bericht----- Van: Nic James Ferrier [mailto:nferrier@xxxxxxxxxxxxxxxxxxxx] Verzonden: vrijdag 18 mei 2007 10:29 Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Onderwerp: Re: [xsl] Retrieve images from a RSS feed "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, Nic James Ferrier | Thread | Re: [xsl] Retrieve images from a RS, M. David Peterson |
Re: [xsl] Retrieve images from a RS, Nic James Ferrier | Date | [xsl] Inserting a separator only be, Yves Forkl |
Month |
Keywords