svghmi/hmi_tree.ysl2
branchsvghmi
changeset 3127 d4dfd47f8156
parent 3097 a098b2dd9dff
child 3129 f2709923c82c
equal deleted inserted replaced
3126:f45e413a0f40 3127:d4dfd47f8156
   118                     when "$pathminmaxcount = 2" {
   118                     when "$pathminmaxcount = 2" {
   119                         error > Widget id:«$id» label:«$label» has wrong syntax of path section «$pathminmax»
   119                         error > Widget id:«$id» label:«$label» has wrong syntax of path section «$pathminmax»
   120                     }
   120                     }
   121                 }
   121                 }
   122                 choose {
   122                 choose {
   123                     when "regexp:test($path,'^\.[a-zA-Z0-9_]+')" {
   123                     when "regexp:test($path,'^\.[a-zA-Z0-9_]+$')" {
   124                         attrib "type" > PAGE_LOCAL
   124                         attrib "type" > PAGE_LOCAL
   125                     }
   125                     }
   126                     when "regexp:test($path,'^[a-zA-Z0-9_]+')" {
   126                     when "regexp:test($path,'^[a-zA-Z0-9_]+$')" {
   127                         attrib "type" > HMI_LOCAL
   127                         attrib "type" > HMI_LOCAL
   128                     }
   128                     }
   129                     otherwise {
   129                     otherwise {
   130                         const "item", "$indexed_hmitree/*[@hmipath = $path]";
   130                         const "item", "$indexed_hmitree/*[@hmipath = $path]";
   131                         const "pathtype", "local-name($item)";
   131                         const "pathtype", "local-name($item)";