|
From: Don B. <mr...@tw...> - 2004-04-07 01:49:42
|
I merged my version I created this morning with yours - attached is the result. Differences: * Use of the Mrecord shape to embed properties inside of bean objects * Seperate structure for lists and maps * No duplication of beans, ie refs don't get their own structure * Referenced beans connect at the property they are referenced For fun, I applied it to a moderately complex Spring config file for a pet project of mine: http://www.twdata.org/dakine/beans.png Don Daniel Potter wrote: >Here is the stylesheet and an Ant snippet that shows how to generate a graph (as >postscript and gif) as part of a build. The XSL is not pretty and would need >some work for it to handle all possible configuration options allowed by the >Spring DTD. It should work as-is for most Spring config files, but it doesn't >handle nested maps and lists, and doesn't even recognize sets (altho that would >be trivial to add). It could be a good starting point for something more >thorough however. > >Also, this XSL includes all property values in the graph (not just bean >dependencies). This can clutter the graph up pretty quickly for >moderate-to-complex configurations. It would probably be more useful to only >include bean dependencies in the graph, not all configuration properties >(basically, <value/> properties). > >If anyone makes improvements to the XSL, please post them back to this (or the >user) list so everyone can benefit. > >Enjoy. > >Daniel > > |