svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3199 1582753e409b
parent 3195 cdd2a032b424
child 3206 4fd7bd10e606
equal deleted inserted replaced
3198:d9c8f8789fc8 3199:1582753e409b
   301     <xsl:copy-of select="_parsed_widgets"/>
   301     <xsl:copy-of select="_parsed_widgets"/>
   302     <xsl:apply-templates mode="testtree" select="$parsed_widgets"/>
   302     <xsl:apply-templates mode="testtree" select="$parsed_widgets"/>
   303     <xsl:text>
   303     <xsl:text>
   304 </xsl:text>
   304 </xsl:text>
   305   </xsl:template>
   305   </xsl:template>
   306   <xsl:variable name="geometry" select="ns:GetSVGGeometry()"/>
   306   <xsl:variable name="all_geometry" select="ns:GetSVGGeometry()"/>
       
   307   <xsl:variable name="defs" select="//svg:defs/descendant-or-self::svg:*"/>
       
   308   <xsl:variable name="geometry" select="$all_geometry[not(@Id = $defs/@id)]"/>
   307   <debug:geometry/>
   309   <debug:geometry/>
   308   <xsl:template match="debug:geometry">
   310   <xsl:template match="debug:geometry">
   309     <xsl:text>
   311     <xsl:text>
   310 </xsl:text>
   312 </xsl:text>
   311     <xsl:text>/* </xsl:text>
   313     <xsl:text>/* </xsl:text>
   474   </func:function>
   476   </func:function>
   475   <xsl:variable name="required_page_elements" select="func:required_elements($hmi_pages | $keypads)/ancestor-or-self::svg:*"/>
   477   <xsl:variable name="required_page_elements" select="func:required_elements($hmi_pages | $keypads)/ancestor-or-self::svg:*"/>
   476   <xsl:variable name="hmi_lists_descs" select="$parsed_widgets/widget[@type = 'List']"/>
   478   <xsl:variable name="hmi_lists_descs" select="$parsed_widgets/widget[@type = 'List']"/>
   477   <xsl:variable name="hmi_lists" select="$hmi_elements[@id = $hmi_lists_descs/@id]"/>
   479   <xsl:variable name="hmi_lists" select="$hmi_elements[@id = $hmi_lists_descs/@id]"/>
   478   <xsl:variable name="required_list_elements" select="func:refered_elements($hmi_lists[@id = $required_page_elements/@id])"/>
   480   <xsl:variable name="required_list_elements" select="func:refered_elements($hmi_lists[@id = $required_page_elements/@id])"/>
   479   <xsl:variable name="required_elements" select="//svg:defs/descendant-or-self::svg:*&#10;       | $required_list_elements&#10;       | $required_page_elements"/>
   481   <xsl:variable name="required_elements" select="$defs | $required_list_elements | $required_page_elements"/>
   480   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   482   <xsl:variable name="discardable_elements" select="//svg:*[not(@id = $required_elements/@id)]"/>
   481   <func:function name="func:sumarized_elements">
   483   <func:function name="func:sumarized_elements">
   482     <xsl:param name="elements"/>
   484     <xsl:param name="elements"/>
   483     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   485     <xsl:variable name="short_list" select="$elements[not(ancestor::*/@id = $elements/@id)]"/>
   484     <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;        ])]"/>
   486     <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;        ])]"/>