svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3161 edd558965f58
parent 3156 76c0c0a524c9
child 3165 2db69e2c5673
equal deleted inserted replaced
3160:cecfd6bb4593 3161:edd558965f58
   469   <xsl:variable name="required_elements" select="//svg:defs/descendant-or-self::svg:*&#10;       | func:required_elements($hmi_pages | $keypads)/ancestor-or-self::svg:*"/>
   469   <xsl:variable name="required_elements" select="//svg:defs/descendant-or-self::svg:*&#10;       | func:required_elements($hmi_pages | $keypads)/ancestor-or-self::svg:*"/>
   470   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   470   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   471   <func:function name="func:sumarized_elements">
   471   <func:function name="func:sumarized_elements">
   472     <xsl:param name="elements"/>
   472     <xsl:param name="elements"/>
   473     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   473     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   474     <xsl:variable name="filled_groups" select="$short_list/parent::svg:*[&#10;        not(descendant::*[&#10;            not(self::svg:g) and&#10;            not(@id = $discardable_elements/@id) and&#10;            not(@id = $short_list/descendant-or-self::*[not(self::svg:g)]/@id)&#10;        ])]"/>
   474     <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;        ])]"/>
   475     <xsl:variable name="groups_to_add" select="$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"/>
   475     <xsl:variable name="groups_to_add" select="$filled_groups[not(ancestor::*/@id = $filled_groups/@id)]"/>
   476     <func:result select="$groups_to_add | $short_list[not(ancestor::svg:g/@id = $filled_groups/@id)]"/>
   476     <func:result select="$groups_to_add | $short_list[not(ancestor::*/@id = $filled_groups/@id)]"/>
   477   </func:function>
   477   </func:function>
   478   <func:function name="func:detachable_elements">
   478   <func:function name="func:detachable_elements">
   479     <xsl:param name="pages"/>
   479     <xsl:param name="pages"/>
   480     <xsl:choose>
   480     <xsl:choose>
   481       <xsl:when test="$pages">
   481       <xsl:when test="$pages">