Hello,

On Wed, 05 Nov 2008 17:01:04 -0000
"dupemenot" <[EMAIL PROTECTED]> wrote:

> Hi,
> I have to generate some data powered diagrams using svg.
> I am using jsp along with struts. Could you guys tell me what are the
> options I have ?
> What I found:
> -Use Batik library which encapsulates svg. This technology is not 100%
> capable yet

I was using Batik for a project that sounds similar over 5 years ago.
I'm not sure what Batik doesn't do yet.

> -Use DOM to generate svg. Very long procedure coz one has to go
> through every node and its attributes.

This awkward if you generate the whole SVG during run time. However,
there are other approaches.

> -Use xslt to generate svg. I dont have much knowledge about this.
> Please explain how would I do this. Its seems more practical approach.
> I am guessing I will have to get the data from the database in XML
> format in order to use this technology.

I've never done this in anything other than a toy app.

I've seen basically two approaches to this kind of problem.

* Build all of the SVG for each update.
* Start with an SVG file with some initial display in place. Then,
  modify the SVG with eaach update.

It sounds like you are mostly looking at the first approach.
The second approach allows fast updates on even fairly complex displays.

As I said, I've done both approaches with Batik.

I've done quite a bit of the second approach with scripting.

The XSLT approach is probably more useful for the first approach.

G. Wade
-- 
"any technology sufficiently advanced is indistinguishable from a Perl
script."                                -- Programming Perl, 2nd ed.

------------------------------------

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to