Thanks for your answer. Trust me, XSLT is not the best way (I explored that already). My current prototype is written in C# but without GUI and only supports theBrain ->Neo4J and theBrain -> GraphViz (dot syntax), without yet all the bolts and nuts of theBrain features.
Until that feel free to take a look at my current projects:
'mixin-interface' (more than 8000 downloads), as well as 'mixin-interface-api' and 'design-patterns-api'