svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2874 b67af0b8dc72
parent 2873 022db76c3bff
child 2877 682bce953795
--- a/svghmi/hmi_tree.ysl2	Tue Mar 17 07:39:50 2020 +0100
+++ b/svghmi/hmi_tree.ysl2	Tue Mar 17 08:00:33 2020 +0100
@@ -45,3 +45,22 @@
         with "parentpath" > «$parentpath»
     }
 }
+
+// Debug data
+template "*", mode="testtree"{
+    param "indent", "''";
+    > «$indent» «local-name()» 
+    foreach "@*" > «local-name()»="«.»" 
+    > \n
+    apply "*", mode="testtree" {
+        with "indent" value "concat($indent,'>')"
+    };
+}
+function "debug_hmitree" {
+    | Raw HMI tree
+    apply "$hmitree", mode="testtree";
+    |
+    | Indexed HMI tree
+    apply "$indexed_hmitree", mode="testtree";
+}
+!debug_output_calls.append("debug_hmitree")