cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bart Molenkamp" <b.molenk...@bizzdesign.nl>
Subject RE: Questions re using SVG in Cocoon
Date Mon, 31 Jul 2006 14:03:42 GMT
> -----Oorspronkelijk bericht-----
> Van: hepabolu [mailto:hepabolu@gmail.com]

> 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).

Otherwise, you can use the <embed/> tag, and use a SVG viewer plugin.
Should look something like

<embed
  height="100%" 
  width="300%" 
  src="relative/path/to/my/image.svg"
  type="image/svg+xml"   
  pluginspage="http://www.adobe.com/svg/viewer/install/"/>

(this uses the plugin from adobe).

And instead of using a cocoon:// URL, you should just use 
"my-svg-pipeline?parameters=x".

Bart.


Mime
View raw message