sync/gen_dot.ysl2
author Thomas
Fri, 07 Jun 2019 07:41:36 +0200
branchsequoia_windows
changeset 3819 0c1bcfa6f9f3
parent 3816 c4e27127ffa5
child 3825 b8d55cc4755e
permissions -rw-r--r--
Merge with sync
     1 // This file is under GNU General Public License 3.0
     2 // see LICENSE.txt
     3 
     4 include yslt.yml2
     5 
     6 tstylesheet {
     7     template "protocol/fsm" document "{@name}.dot", "text"
     8     ||
     9     digraph finite_state_machine {
    10         rankdir=LR;
    11         node [shape = point];
    12         InitState;
    13         node [shape = doublecircle];
    14         End;
    15         node [shape = circle, style=filled, fillcolor = lightgrey];
    16 
    17         `` apply "descendant::transition";
    18     }
    19     ||
    20 
    21     template "transition"
    22         | «ancestor::state/@name» -> «@target» [ label="«ancestor::event/@name»" ];
    23 }
    24