You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Hal Fossa <ha...@tibcofinance.com> on 2000/07/19 18:40:55 UTC

Re: Advice on XML -> PNG Image creation

I am looking for a tool/capability for (or experience of)
converting XML (which is contained in my Cocoon documentation)
into a graphical image representing a nice tree view for
use the in resulting Cocoon pages.

Ideally, this could be invoked as part of the Cocoon generation
step.

Has anyone (e.g. David Herring who raised this question six months
ago) got anything to help me further?

Thanks for any pointers.

-----Original Message----- 

From: dherr@badger [mailto:dherr@badger]On Behalf Of David Herring 
Sent: Monday, February 14, 2000 7:36 PM 
To: cocoon-users@xml.apache.org 
Subject: Advice on XML -> PNG Image creation 

Hello, 

Has anyone any expericence or advice on transforming XML data into
graphical 
images (charts etc). 

Obviously the Graphics2d java api can perform the image creation, but
how 
would one segragate this 
process within a Cocoon driven system. 

Thanks in advance, 
David Herring 

-- 
Hal Fosså, Fourth Floor, 55 Gracechurch Street, London EC3V 0JA, +44 20
7542 1123

Re: Advice on XML -> PNG Image creation

Posted by Jeremy Quinn <je...@media.demon.co.uk>.
At 17:40 +0100 19/07/00, Hal Fossa wrote:
>I am looking for a tool/capability for (or experience of)
>converting XML (which is contained in my Cocoon documentation)
>into a graphical image representing a nice tree view for
>use the in resulting Cocoon pages.
>
>Ideally, this could be invoked as part of the Cocoon generation
>step.
>
>Has anyone (e.g. David Herring who raised this question six months
>ago) got anything to help me further?

Well, you can use SVG.

SVG is XML, so a StyleSheet could create the image from your XML content.

Either send the SVG straight to the client or have it converted to JPG or
PNG (never tried this bit, so can't tell you how it's done)

There is a trivial SVG example in the Samples of Cocoon 1.7.5-dev

Making a collapsible/expandable Tree View in SVG could be quite a challenge
however ......

hope this helps

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>