项目作者: expkg-zone58

项目描述 :
The dotML library provides conversion from dotML format to graphviz dot
高级语言: XSLT
项目地址: git://github.com/expkg-zone58/ex-dotml.git
创建时间: 2015-05-02T21:06:43Z
项目社区:https://github.com/expkg-zone58/ex-dotml

开源协议:Apache License 2.0

下载


ex-dotml

The dotML library provides conversion from dotML format to Graphviz[1] dot.
DotML[2] is a XML based syntax for the input language ‘Dot’ used by Graphviz.
This application includes an XSLT transform to convert DotML to dot developed by Martin Loetzsch.

Example

  1. import module namespace dotml="http://www.martin-loetzsch.de/DOTML";
  2. <graph xmlns="http://www.martin-loetzsch.de/DOTML">
  3. <node id="a"></node>
  4. <node id="b"></node>
  5. <edge from="a" to="b"></edge>
  6. </graph>
  7. !dotml:to-dot(.)

Result:

  1. digraph g {compound="true";bgcolor="";fontcolor="";fontname="";fontsize="";label="";margin="";nodesep="";rankdir="";ranksep="";ratio="";size="";node[label="a", color="",fillcolor="",fixedsize="",fontcolor="",fontname="",fontsize="",height="",shape="",style="",URL="",width="",] {a};node[label="b", color="",fillcolor="",fixedsize="",fontcolor="",fontname="",fontsize="",height="",shape="",style="",URL="",width="",] {b};edge[arrowhead="",arrowsize="",arrowtail="",constraint="",color="",decorate="",dir="",fontcolor="",fontname="",fontsize="",headlabel="",headport="",label="",labeldistance="",labelfloat="",labelfontcolor="",labelfontname="",labelfontsize="",minlen="",samehead="",sametail="",style="",taillabel="",tailport="",URL="",lhead="",ltail=""] a -> b;}

References

[1] http://www.graphviz.org/
[2] http://www.martin-loetzsch.de/DOTML/