[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Retrieve images from a RSS feed

Subject: Re: Retrieve images from a RSS feed
From: "M. David Peterson" <m.david@xxxxxxxxxxxxx>
Date: Sun, 20 May 2007 13:55:35 -0600
Re:  Retrieve images from a RSS feed
On Sun, 20 May 2007 11:12:32 -0600, M. David Peterson
<m.david@xxxxxxxxxxxxx> wrote:

<xsl:variable name="file"

select="file:SaveExternalFile('http://s3.amazonaws.com/m.david/xslt/eveel_pla
n/XSLnT.png',
'/tmp/foo.png')"

xmlns:file="clitype:Xameleon.Function.HttpFileStream?asm=Xameleon;ver=1.0.0.0
;sn=8974f7aaf62d3d0f"/>

Correction: This should have been <xsl:value-of select="..."
xmlns:file="..."/> for it to properly invoke the function.  I've also
discovered that if you want to ensure you are using the version of an
assembly you intend to be using, regardless of whether it is in the GAC or
not, use the 'from' query string parameter to explicity tell Saxon to "use
*this* assembly."  For example,

<xsl:value-of
    select="file:SaveExternalFile('http://s3.amazonaws.com/m.david/xslt/evee
l_plan/XSLnT.png',
'/tmp/foo.png')"
    xmlns:file="clitype:Xameleon.Function.HttpFileStream?asm=Xameleon;ver=1.
0.0.0;sn=8974f7aaf62d3d0f;from=/srv/wwwroot/webapp/bin/Xameleon.dll"/>

I've now got this working via an ASP.NET-based application (something in
which I didn't have working properly less than an hour ago) which means
I'm quite a bit closer to having things buttoned up into a usable
"plug-and-play" web application than I thought I was when I wrote the
initial response.  Still won't be today or tomorrow, but definitely sooner
rather than later (like << that really helps nail things down! ;-))

--
/M:D

M. David Peterson
http://mdavid.name | http://www.oreillynet.com/pub/au/2354 |
http://dev.aol.com/blog/3155

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.