svghmi/hmi_tree.ysl2
branchsvghmi
changeset 2885 f398896b7ebf
parent 2882 ac08a5d15c15
child 2886 6c82fad8be65
--- a/svghmi/hmi_tree.ysl2	Wed Mar 18 09:37:26 2020 +0100
+++ b/svghmi/hmi_tree.ysl2	Wed Mar 18 12:06:50 2020 +0100
@@ -101,6 +101,18 @@
     result "exsl:node-set($ast)";
 }
 
+def "func:parselabels" {
+    param "nodes"; 
+    choose{
+        when "$nodes"{
+            result """func:parselabel($nodes[1]/@inkscape:label)
+                      | func:parselabels($nodes[position()!=1])""";
+        }otherwise{
+            result "/..";
+        }
+    }
+}
+
 // Debug data
 template "*", mode="testtree"{
     param "indent", "''";