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
krista@2271
     1
// This file is under GNU General Public License 3.0
krista@2271
     2
// see LICENSE.txt
krista@2271
     3
krista@2271
     4
include yslt.yml2
krista@2271
     5
krista@2271
     6
tstylesheet {
vb@2829
     7
    template "protocol/fsm" document "{@name}.dot", "text"
krista@2271
     8
    ||
krista@2271
     9
    digraph finite_state_machine {
krista@2271
    10
        rankdir=LR;
vb@3812
    11
        node [shape = point];
vb@3812
    12
        InitState;
krista@2271
    13
        node [shape = doublecircle];
vb@3809
    14
        End;
vb@3816
    15
        node [shape = circle, style=filled, fillcolor = lightgrey];
krista@2271
    16
vb@3813
    17
        `` apply "descendant::transition";
krista@2271
    18
    }
krista@2271
    19
    ||
krista@2271
    20
vb@3813
    21
    template "transition"
vb@3813
    22
        | «ancestor::state/@name» -> «@target» [ label="«ancestor::event/@name»" ];
krista@2271
    23
}
krista@2271
    24