svghmi/parse_labels.ysl2
branchsvghmi
changeset 3259 76da573569a6
parent 3236 e4e27c4efb96
child 3408 13c5cac55ac7
equal deleted inserted replaced
3255:07f10dc95d2f 3259:76da573569a6
    17 
    17 
    18 template "*", mode="parselabel" 
    18 template "*", mode="parselabel" 
    19 {
    19 {
    20     const "label","@inkscape:label";
    20     const "label","@inkscape:label";
    21     const "id","@id";
    21     const "id","@id";
       
    22 
    22     const "description", "substring-after($label,'HMI:')";
    23     const "description", "substring-after($label,'HMI:')";
    23 
    24 
    24     const "_args", "substring-before($description,'@')";
    25     const "_args", "substring-before($description,'@')";
    25     const "args" choose {
    26     const "args" choose {
    26         when "$_args" value "$_args";
    27         when "$_args" value "$_args";
    84                         }
    85                         }
    85                     }
    86                     }
    86                 }
    87                 }
    87             }
    88             }
    88         }
    89         }
       
    90         if "svg:desc" desc value "svg:desc/text()";
    89     }
    91     }
    90 }
    92 }
    91 
    93 
    92 
    94 
    93 // Templates to generate label back from parsed tree
    95 // Templates to generate label back from parsed tree