Hello,

I do similar things for generating buttons. But I don't embed the svg. 
Instead I set the src attribute to the name of the svg file. When I display 
the page, I rasterize the image and then replace the reference to the svg 
file with a reference to the created image. I have also written a xmlc 
extension for svg. This way it is extremly easy to make minor modifications 
(e.g. setting the text of the button) befor rasterinzing. In case you are 
intrested in this look at:
http://xmlc.enhydra.org/project/mailingLists/xmlc/msg00872.html
general xmlc infos: xmlc.enhydra.org

cu
Roland Schulz
Fahrenheit 451 neue Medien KG

> is there anyone rendering embedded SVG with Batik? I'd like to allow
> <svg> elements in other formats (mainly XHTML) and would like to render
> them into PNG/JPG for usage with an ordinary browser. My current concept
> for this looks like this:
>
> - read the XML input into DOM
> - traverse DOM looking for <svg> elements (should I use the name or the
> namespace to identify?)
> - write all <svg>s into temporary files and rasterize them with Batik
> (direct way still doesn't work. Any nice tricks for the filenames?)
> - replace <svg> in original DOM with suitable <img> element
> - proceed with XSLT (or should I first process the XSLT?)
>
> Anyone doing similar things and/or interested in discussing this?
>
> BTW (OT): does anybody know a nice MathML renderer for Java? --> mail me

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to