This is an XProc 1.0 pipeline to perform a structural analysis of a TEI document. The result are some tables about element/attribute usage and a visualization with GraphViz.
I use this structural analysis to get an overview over new TEI documents before composing an XSL transformation.
The pipeline requires the
dot executable to be available.
TEI Structalize is released under the Unlicense.
calabash -i <path/to/tei/document> src/xproc/structalize.xpl outfile=<path/to/output/file>
Creates a HTML description and a SVG image visualizing the structure.