plcopen/instances_path.ysl2
changeset 2626 39d78c530cbb
parent 1949 c266fbaae0f6
equal deleted inserted replaced
2625:e5ce6c4a8672 2626:39d78c530cbb
    58             with "parent_path" > «$instance_path»
    58             with "parent_path" > «$instance_path»
    59         }
    59         }
    60     }
    60     }
    61     
    61     
    62     template "ppx:dataType" {
    62     template "ppx:dataType" {
    63         param "instance_path";
    63         param "instance_path","concat('#',@name)";
    64         apply "ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]" {
    64         apply "ppx:baseType/*[self::ppx:derived or self::ppx:struct or self::ppx:array]" {
    65             with "parent_path" > «$instance_path»
    65             with "variable_path" > «$instance_path»
    66         }
    66         }
    67     }
    67     }
    68     
    68     
    69     template "ppx:variable" {
    69     template "ppx:variable" {
    70         param "parent_path";
    70         param "parent_path";
    92     
    92     
    93     template "ppx:struct" {
    93     template "ppx:struct" {
    94         param "variable_path";
    94         param "variable_path";
    95         foreach "ppx:variable[ppx:type/ppx:derived or ppx:type/ppx:struct or ppx:type/ppx:array]" {
    95         foreach "ppx:variable[ppx:type/ppx:derived or ppx:type/ppx:struct or ppx:type/ppx:array]" {
    96             variable "element_path" > «$variable_path».«@name»
    96             variable "element_path" > «$variable_path».«@name»
    97         }
    97             apply "ppx:type/*[self::ppx:derived or self::ppx:struct or self::ppx:array]" {
    98         apply "ppx:type/*[self::ppx:derived or self::ppx:struct or self::ppx:array]" {
    98                 with "variable_path" > «$element_path»
    99             with "variable_path" > «$element_path»
    99             }
   100         }
   100         }
   101     }
   101     }
   102     
   102     
   103     template "ppx:array" {
   103     template "ppx:array" {
   104         param "variable_path";
   104         param "variable_path";