Nodetype visualization
This page explains an easy way to make a visualization of the primary nodetypes and their relations found on a server by using standard features in the JCR. The original idea comes from this page and was adapted a little bit.1 Requirements
First of all you will need the following software:2 How it works
The JCR standard has a buildin function in the session object to serialize a node recursively and save it into an XML file. Let's do this from the location where the nodetypes are stored:session.exportSystemView("/jcr:system/jcr:nodetypes", bufferedOutputStream, false, false);
saxon jcr-export-jcr-1.1-formatted.xml jcr-nodetypes-to-dot.xslt > jcr-export-jcr-1.1.dot dot jcr-export-jcr-1.1.dot -Tsvg -o jcr-export-jcr-1.1.svg
3 Result
Download full svg file
on 20/04/2009 at 08:36