You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Remy Giraud <re...@meteo.fr> on 2000/07/09 16:54:43 UTC

SVG Output

Hello all,
Sorry if this it a newbie question... 
I would like to know if it is possible (I am pretty sure it is...) to
format my XML content to produce SVG ( not embedded in PDF just like the
FO example ) but 'plain' SVG ?
The idea is to be able to produce HTML, WML, PDF and SVG with the same
XML source but for different use.
If yes, is there an example available somewhere ?
Thanks for help
Regards
Remy
--
Remy Giraud
Remy@Giraud.net

Re: SVG Output

Posted by Ross Burton <ro...@mail.com>.
> Sorry if this it a newbie question...
> I would like to know if it is possible (I am pretty sure it is...) to
> format my XML content to produce SVG ( not embedded in PDF just like the
> FO example ) but 'plain' SVG ?
> The idea is to be able to produce HTML, WML, PDF and SVG with the same
> XML source but for different use.
> If yes, is there an example available somewhere ?

A SVG file is a XML application - just use the XML formatter and transform
your souce to SVG.  There are examples of this on IBM's DeveloperWorks (I've
lost the URL, sorry).

If you mean rendering the SVG into an image (JPEG or PNG), this only works
in Cocoon 2 although I cannot see a reason why the code cannot be backmerged
to Cocoon 1.

Ross Burton


Re: SVG Output

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 16:54 +0200 09/07/00, Remy Giraud wrote:
>Hello all,
>Sorry if this it a newbie question...
>I would like to know if it is possible (I am pretty sure it is...) to
>format my XML content to produce SVG ( not embedded in PDF just like the
>FO example ) but 'plain' SVG ?

Yes

>The idea is to be able to produce HTML, WML, PDF and SVG with the same
>XML source but for different use.
>If yes, is there an example available somewhere ?

In Cocoon samples/svg/ you will need to get the latest version of Cocoon
1.7.5-dev from the CVS.


regards Jeremy
-- 
   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <ma...@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pa...@sms.genie.co.uk>