diff -r 0ae5a15efa18 -r fdc12f7d27c8 svghmi/inline_svg.ysl2 --- a/svghmi/inline_svg.ysl2 Tue Nov 30 18:43:10 2021 +0100 +++ b/svghmi/inline_svg.ysl2 Sun Jan 16 17:00:58 2022 +0100 @@ -56,7 +56,7 @@ // TODO: narrow application of clone unlinking to active elements, // while keeping static decoration cloned const "targets_not_to_unlink", "$hmi_lists/descendant-or-self::svg:*"; -const "to_unlink", "$hmi_elements[not(@id = $hmi_pages/@id)]/descendant-or-self::svg:use"; +const "to_unlink", "$hmi_widgets/descendant-or-self::svg:use"; def "func:is_unlinkable" { param "targetid"; @@ -174,7 +174,7 @@ param "seed"; choose { // node recursive copy ends when finding a widget - when "@id = $hmi_elements/@id" { + when "@id = $hmi_widgets/@id" { // place a clone instead of copying use{ attrib "xlink:href" > «concat('#',@id)»