Ultimately what I am trying to achieve here is: 1. Retrieve a remote image 2. Add some text to the image via SVG 3. Output as jpeg
I can do this for a local image just not a remote image. Is it possible? Something like this: -- <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <svg:svg xmlns:svg="http://www.w3.org/SVG" width="100px" height="100px"> <svg:g> <svg:image xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100}"> <xsl:attribute name="xlink:href"> <xsl:text>http://</xsl:text> <xsl:text>www.absnetwork.com.au/abs_consult-106079.jpg</xsl:text> </xsl:attribute> </svg:image> <svg:text x="10" y="10">Some text</svg:text> </svg:g> </svg:svg> </xsl:template> </xsl:stylesheet> --- This > -----Original Message----- > From: Lincoln Mitchell [mailto:[EMAIL PROTECTED] > Sent: Friday, 3 August 2007 9:24 PM > To: [email protected] > Subject: RE: access remote jpg > > You said: "What you probably can do is to make the request to your Cocoon > server and let Cocoon grab it for you with a reader from the remote > server." > I am not familiar with the terms you are using so am a bit confused. > How do you make a request to my Cocoon server? Do you just mean something > like: > <map:match pattern="*.jpg"> > <map:read mime-type="image/jpg" src="{1}.jpg"/> > </map:match> > And how do you let Cocoon grab it for you with a reader from the remote > server. Do I need to contact the content provider to find out what reader > to > use. > What would help is some sample code maybe. > > Apologies for my ignorance. > > Linc > > > > -----Original Message----- > > From: Joerg Heinicke [mailto:[EMAIL PROTECTED] > > Sent: Friday, 3 August 2007 8:39 PM > > To: [email protected] > > Subject: Re: access remote jpg > > > > On 03.08.2007 5:41 Uhr, Lincoln Mitchell wrote: > > > > > Is it still worth looking into doc type / content type header. Will > that > > > potentially allow me to use cocoon to show the images? > > > > As Tobia found out it's the referrer header they seem to check, so I > > don't see how you can mimic it. It is a pure client side issue as I > > guessed. When you visit the saved HTML you don't have this header and > > their server allows you to access the image. When the HTML is served by > > Cocoon the image request gets set the referrer header to your server - > > and access to the image is blocked. > > > > What you probably can do is to make the request to your Cocoon server > > and let Cocoon grab it for you with a reader from the remote server. > > > > Or you just clarify with your content provider for which referrers the > > image access is allowed. > > > > Joerg > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
