svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2911 211d6a185e31
parent 2904 92d115d8828d
child 2939 4296ab974d4d
--- a/svghmi/hmi_tree.ysl2	Thu Apr 02 09:38:53 2020 +0200
+++ b/svghmi/hmi_tree.ysl2	Thu Apr 02 14:03:38 2020 +0200
@@ -93,8 +93,10 @@
                 attrib "value" > «.»
                 const "path", ".";
                 const "item", "$indexed_hmitree/*[@hmipath = $path]";
-                if "count($item) = 1"
+                if "count($item) = 1" {
                     attrib "index" > «$item/@index»
+                    attrib "type" > «local-name($item)»
+                }
             }
         }
     }