Forked from tinkerpop’s gremlin wiki
I’ve forked gremlin to work on adding XSLT support to render GraphML documents as HTML documents, with embedded SVG for vertices.
Here is the source XML example of a GraphML-encoded graph :
(Note that I manually annotated the XML with X and Y attributes to indicate my
preferred positioning : at some point, this X and Y annotation will be done automatically using a graph-drawing algorithm).
The XSL is generically written for any GraphML graph:
CSS here:
Compare with the “reference implementation” from the Gremlin documentation Wiki:
It depends on support for embedding SVG elements (the svg
tag) embedded insideHTML documents. Currently both Firefox and Safari support this: (Safari support shown).
Comparison between XML to SVG Transformation Mechanisms By Christophe Jolif