diff -r 4eeed820fd3a -r ae8063127e95 svghmi/hmi_tree.ysl2 --- a/svghmi/hmi_tree.ysl2 Thu Mar 19 19:23:56 2020 +0100 +++ b/svghmi/hmi_tree.ysl2 Fri Mar 20 10:00:59 2020 +0100 @@ -5,7 +5,6 @@ const "hmitree", "ns:GetHMITree()"; const "_categories" { - noindex > HMI_ROOT noindex > HMI_PLC_STATUS noindex > HMI_CURRENT_PAGE } @@ -21,7 +20,8 @@ const "content" { const "path" choose { - when "local-name() = 'HMI_ROOT'" > «$parentpath» + when "count(ancestor::*)=0" > / + when "count(ancestor::*)=1" > /«@name» otherwise > «$parentpath»/«@name» } choose {