Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

XSL stylesheet from JDepend XML output to graphml

0 votes

I'm looking to create a stylesheet that I can use to import the jdepend-report.xml produced by maven into yEd.  Jdepend comes with a sample stylesheet for Graphviz (see clarkware.com/software/JDepend.html).  How would a similar stylesheet for graphml look?  

asked Jan 14, 2014 in Help by anonymous
edited Jan 14, 2014

1 Answer

0 votes

Try this stylesheet. After importing, use "Tools" -> "Fit Node to Label" (with default settings) and run "Layout" -> Hierarchical".

Note: This stylesheet models JDepend metrics as custom properties. However, yEd's "XML+XSL" import filter only supports custom properties as of version 3.12 (which is not yet released but will be soon). So, either wait for 3.12 or use ANT (or another transformer) to convert your report to GraphML and open the resulting GraphML as usual in yEd.

answered Jan 22, 2014 by thomas.behr [yWorks] (126,540 points)
edited Jan 22, 2014 by thomas.behr
Thank you for your answer.  I wound up going with https://github.com/paulkrause88/jdepend/blob/master/contrib/jdepend2graphml.xsl
Legal Disclosure | Privacy Policy