branch | svghmi |
changeset 2890 | ae8063127e95 |
parent 2886 | 6c82fad8be65 |
child 2893 | d57a12b8f5db |
--- 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 {