equal
deleted
inserted
replaced
13 // path value="path4" index="path4" type="HMI_LOCAL"; |
13 // path value="path4" index="path4" type="HMI_LOCAL"; |
14 // } |
14 // } |
15 // |
15 // |
16 const "pathregex",!"'^([^\[,]+)(\[[^\]]+\])?([\d,]*)$'"!; |
16 const "pathregex",!"'^([^\[,]+)(\[[^\]]+\])?([\d,]*)$'"!; |
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 |
23 const "description", "substring-after($label,'HMI:')"; |
23 const "description", "substring-after($label,'HMI:')"; |
43 } |
43 } |
44 if "$type" widget { |
44 if "$type" widget { |
45 attrib "id" > «$id» |
45 attrib "id" > «$id» |
46 attrib "type" > «$type» |
46 attrib "type" > «$type» |
47 if "$freq" { |
47 if "$freq" { |
48 if "not(regexp:test($freq,'^[0-9]*(\.[0-9]+)?[smh]'))" { |
48 if "not(regexp:test($freq,'^[0-9]*(\.[0-9]+)?[smh]?'))" { |
49 error > Widget id:«$id» label:«$label» has wrong syntax of frequency forcing «$freq» |
49 error > Widget id:«$id» label:«$label» has wrong syntax of frequency forcing «$freq» |
50 } |
50 } |
51 attrib "freq" > «$freq» |
51 attrib "freq" > «$freq» |
52 } |
52 } |
53 foreach "str:split(substring-after($args, ':'), ':')" { |
53 foreach "str:split(substring-after($args, ':'), ':')" { |