From: Leszek Gawron <[EMAIL PROTECTED]>
Date: Mon, 31 Jul 2006 16:19:33 +0200
Bart Molenkamp wrote:
-----Oorspronkelijk bericht-----
Van: hepabolu [mailto:[EMAIL PROTECTED]
Anyway it doesn't
work and I have no clue how I can include a generated image (i.e.
what's
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).
http://rifers.org/blogs/gbevin/2005/4/11/embedding_images_inside_html
Another alternative approach:
Within your page, generate an object tag containing a nested img tag (as
described at
http://labs.silverorange.com/archives/2006/january/howtoinclude) 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.
Andrew.