cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevens" <>
Subject Re: Questions re using SVG in Cocoon
Date Mon, 31 Jul 2006 16:32:00 GMT
>From: Leszek Gawron <>
>Date: Mon, 31 Jul 2006 16:19:33 +0200
>Bart Molenkamp wrote:
>>>-----Oorspronkelijk bericht-----
>>>Van: hepabolu []
>>>Anyway it doesn't
>>>work and I have no clue how I can include a generated image (i.e.
>>>its name and location?). Any ideas?
>>If you want to include a generated image in your HTML page by using an
>><img/> tag, you should probably serialize the image to PNG or JPEG.
>>There are serializers for this (batik block). I don't think that you can
>>include an SVG image with an <img/> tag (maybe with Firefox 1.5, but
>>certainly not with any version of IE).

Another alternative approach:

Within your page, generate an object tag containing a nested img tag (as 
described at to have the 
browser request either SVG or JPG depending on which it supports.
In your Cocoon sitemap include a pipeline that matches the image URL minus 
file extension, which generates the image as SVG then ends with a map:select 
on the extension that either serialises the SVG directly or runs it through 
the batik serialiser to convert to JPEG.


View raw message