--- a/svghmi/widgets_common.ysl2 Thu May 05 10:24:56 2022 +0200
+++ b/svghmi/widgets_common.ysl2 Thu May 05 10:31:16 2022 +0200
@@ -395,8 +395,10 @@
const "widget_type","@type";
foreach "str:split($labels)" {
- const "elt","$result_widgets[@id = $hmi_element/@id]//*[@inkscape:label=$name][1]";
+ const "absolute", "starts-with(., '/')"; + const "name","substring(.,number($absolute)+1)"; + const "widget","$result_widgets[@id = $hmi_element/@id]"; + const "elt","($widget//*[not($absolute) and @inkscape:label=$name] | $widget/*[$absolute and @inkscape:label=$name])[1]";