svghmi/gen_index_xhtml.xslt
changeset 3877 ecb947e5bbb4
parent 3854 d29d67e86532
child 3920 0d491fada1ad
child 3923 77a1846390ef
--- a/svghmi/gen_index_xhtml.xslt	Fri Nov 24 14:44:08 2023 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Fri Nov 24 14:47:14 2023 +0100
@@ -717,7 +717,7 @@
   <func:function name="func:sumarized_elements">
     <xsl:param name="elements"/>
     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
-    <xsl:variable name="filled_groups" select="$short_list/parent::*[&#10;        not(child::*[&#10;            not(@id = $discardable_elements/@id) and&#10;            not(@id = $short_list/@id)&#10;        ])]"/>
+    <xsl:variable name="filled_groups" select="$short_list/parent::svg:g[&#10;        not(child::*[&#10;            not(@id = $discardable_elements/@id) and&#10;            not(@id = $short_list/@id)&#10;        ])]"/>
     <xsl:variable name="groups_to_add" select="$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"/>
     <func:result select="$groups_to_add | $short_list[not(ancestor::*/@id = $filled_groups/@id)]"/>
   </func:function>