svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2911 211d6a185e31
parent 2904 92d115d8828d
child 2939 4296ab974d4d
equal deleted inserted replaced
2910:1a1caf71b1cc 2911:211d6a185e31
    91         foreach "str:split($paths, '@')" {
    91         foreach "str:split($paths, '@')" {
    92             if "string-length(.) > 0" path {
    92             if "string-length(.) > 0" path {
    93                 attrib "value" > «.»
    93                 attrib "value" > «.»
    94                 const "path", ".";
    94                 const "path", ".";
    95                 const "item", "$indexed_hmitree/*[@hmipath = $path]";
    95                 const "item", "$indexed_hmitree/*[@hmipath = $path]";
    96                 if "count($item) = 1"
    96                 if "count($item) = 1" {
    97                     attrib "index" > «$item/@index»
    97                     attrib "index" > «$item/@index»
       
    98                     attrib "type" > «local-name($item)»
       
    99                 }
    98             }
   100             }
    99         }
   101         }
   100     }
   102     }
   101 }
   103 }
   102 
   104