svghmi/gen_dnd_widget_svg.xslt
branchsvghmi
changeset 3225 cfa5690c8c15
parent 3224 507dd7bc8cb5
child 3229 c5be4fd425e7
equal deleted inserted replaced
3224:507dd7bc8cb5 3225:cfa5690c8c15
   129   <xsl:variable name="svg_widget_count" select="count($parsed_widgets/widget)"/>
   129   <xsl:variable name="svg_widget_count" select="count($parsed_widgets/widget)"/>
   130   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@*">
   130   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@*">
   131     <xsl:copy/>
   131     <xsl:copy/>
   132   </xsl:template>
   132   </xsl:template>
   133   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@inkscape:label[starts-with(., 'HMI:')]">
   133   <xsl:template xmlns="http://www.w3.org/2000/svg" mode="inline_svg" match="@inkscape:label[starts-with(., 'HMI:')]">
   134     <xsl:copy/>
   134     <xsl:attribute name="inkscape:label">
       
   135       <xsl:value-of select="substring-before(., '@')"/>
       
   136       <xsl:text>@</xsl:text>
       
   137       <xsl:value-of select="$hmi_path"/>
       
   138     </xsl:attribute>
   135   </xsl:template>
   139   </xsl:template>
   136   <xsl:template mode="inline_svg" match="node()">
   140   <xsl:template mode="inline_svg" match="node()">
   137     <xsl:copy>
   141     <xsl:copy>
   138       <xsl:apply-templates mode="inline_svg" select="@* | node()"/>
   142       <xsl:apply-templates mode="inline_svg" select="@* | node()"/>
   139     </xsl:copy>
   143     </xsl:copy>