svghmi/gen_index_xhtml.xslt
changeset 3877 ecb947e5bbb4
parent 3854 d29d67e86532
child 3920 0d491fada1ad
child 3923 77a1846390ef
equal deleted inserted replaced
3876:7d83cd94e3cc 3877:ecb947e5bbb4
   715   <xsl:variable name="required_elements" select="$defs | $required_list_elements | $required_page_elements"/>
   715   <xsl:variable name="required_elements" select="$defs | $required_list_elements | $required_page_elements"/>
   716   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   716   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   717   <func:function name="func:sumarized_elements">
   717   <func:function name="func:sumarized_elements">
   718     <xsl:param name="elements"/>
   718     <xsl:param name="elements"/>
   719     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   719     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   720     <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;        ])]"/>
   720     <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;        ])]"/>
   721     <xsl:variable name="groups_to_add" select="$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"/>
   721     <xsl:variable name="groups_to_add" select="$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"/>
   722     <func:result select="$groups_to_add | $short_list[not(ancestor::*/@id = $filled_groups/@id)]"/>
   722     <func:result select="$groups_to_add | $short_list[not(ancestor::*/@id = $filled_groups/@id)]"/>
   723   </func:function>
   723   </func:function>
   724   <func:function name="func:detachable_elements">
   724   <func:function name="func:detachable_elements">
   725     <xsl:param name="pages"/>
   725     <xsl:param name="pages"/>