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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
