diff -r 50b9832c51fc -r f398896b7ebf svghmi/hmi_tree.ysl2 --- 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", "''";