sync/gen_statemachine.ysl2
changeset 1709 dcebe0692d63
parent 1601 10e4e77e2278
child 1731 cb009a53b1c8
     1.1 --- a/sync/gen_statemachine.ysl2	Thu Mar 30 17:32:55 2017 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Tue Apr 18 16:40:32 2017 +0200
     1.3 @@ -346,10 +346,10 @@
     1.4          |> if (cond_result) {
     1.5          apply "action|transition|condition";
     1.6          |> }
     1.7 -        const "else", "./following-sibling::*[position()=1][name(.)='else']";
     1.8 -        if "$else" {
     1.9 +        const "alternative", "./following-sibling::*[position()=1][name(.)='alternative']";
    1.10 +        if "$alternative" {
    1.11          |> else {
    1.12 -        apply "$else/action|$else/transition|$else/condition";
    1.13 +        apply "$alternative/action|$alternative/transition|$alternative/condition";
    1.14          |> }
    1.15          }
    1.16          | }