You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Guillaume Rousse <ro...@ccr.jussieu.fr> on 2001/10/23 20:41:46 UTC

outputting graphes

Hello list.
JPackage project (jpackage.sourceforge.net) has xml description of every 
packaged application. Each package has a set of runtime dependancies (ant 
requires a jaxp parser), and a set of build dependancies (batik requires ant) 
which could easily extracted from those descriptions.
The question is wether this graph could be produced directly in svg format 
using an xslt transformation (i saw wonderful exemple of chart creation this 
way), or should i use a specialised java library (and which one) as a xslt 
extension for this ?
Any help appreciated.
-- 
Guillaume Rousse <ro...@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: outputting graphes

Posted by Vincent Hardy <vi...@sun.com>.
Guillaume,

It probably depends on what you want to do and the type of layout your
graph requires. For a simple layout, you can probably use XSL directly.
However, for a complex layout algorithm, you will likely need to turn
to Java code (but I do not know of any open source graph layout code
from the top of my head. However, I am interested too).

Vincent.

Guillaume Rousse wrote:
> 
> Hello list.
> JPackage project (jpackage.sourceforge.net) has xml description of every
> packaged application. Each package has a set of runtime dependancies (ant
> requires a jaxp parser), and a set of build dependancies (batik requires ant)
> which could easily extracted from those descriptions.
> The question is wether this graph could be produced directly in svg format
> using an xslt transformation (i saw wonderful exemple of chart creation this
> way), or should i use a specialised java library (and which one) as a xslt
> extension for this ?
> Any help appreciated.
> --
> Guillaume Rousse <ro...@ccr.jussieu.fr>
> GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: outputting graphes

Posted by Guillaume Rousse <ro...@ccr.jussieu.fr>.
Ainsi parlait Peter Becker :
[..]
> if I understand your description correctly you need some kind of
> layouting algorithm, which is AFAIK not covered by SVG and/or Batik. You
> might want to take a look at the graph drawing packages on Sourceforge
> for something like this (1), you can use Batik to render their results
> into SVG. Or you might want to run dot/neato (2) via command line, like
> doxygen (3) and some others (e.g. Bugzilla) do. Generating the dot input
> via XSLT should be very easy if the input format is good enough. If you
> have a tree or at least acyclic structure you might want to hack your
> own layouting algorithm, but everything else gets really hard ;-)

Hello Peter & Vincent, thanks for your input.
Unfortunalty, there are many interdependancies between java software, which 
means the result is a cyclic graph. So i'll have to use an external library 
as an xalan-j xsl extension. Currently, i'm hesitating between 
http://openjgraph.sourceforge.net
http://arakhne.multimania.com
http://touchgraph.sourceforge.net
If anybody already used one of them, i would be happy to have some feedback.
As the final target is a web page, i'll target png as a final result. Maybe 
using svg as an intermediate could be helpful, depending on library internal 
capacities.
-- 
Guillaume Rousse <ro...@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Re: outputting graphes

Posted by Peter Becker <pb...@meganesia.int.gu.edu.au>.
Guillaume Rousse wrote:

>Hello list.
>JPackage project (jpackage.sourceforge.net) has xml description of every 
>packaged application. Each package has a set of runtime dependancies (ant 
>requires a jaxp parser), and a set of build dependancies (batik requires ant) 
>which could easily extracted from those descriptions.
>The question is wether this graph could be produced directly in svg format 
>using an xslt transformation (i saw wonderful exemple of chart creation this 
>way), or should i use a specialised java library (and which one) as a xslt 
>extension for this ?
>Any help appreciated.
>
Hello Guillaume,

[sorry for getting OT here]

if I understand your description correctly you need some kind of 
layouting algorithm, which is AFAIK not covered by SVG and/or Batik. You 
might want to take a look at the graph drawing packages on Sourceforge 
for something like this (1), you can use Batik to render their results 
into SVG. Or you might want to run dot/neato (2) via command line, like 
doxygen (3) and some others (e.g. Bugzilla) do. Generating the dot input 
via XSLT should be very easy if the input format is good enough. If you 
have a tree or at least acyclic structure you might want to hack your 
own layouting algorithm, but everything else gets really hard ;-)

HTH,
  Peter


(1) http://openjgraph.sourceforge.net/ ,  some other (more advanced 
looking) project I can
't find at the moment -- mail me if you are interested, I probably can 
ask someone about the link
(2) http://www.research.att.com/sw/tools/graphviz/
(3) http://www.stack.nl/~dimitri/doxygen/ , see example output for Java 
here: 
http://meganesia.int.gu.edu.au/~pbecker/toscanaj/sourcedoc/class_LabelView.html


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org