equal
deleted
inserted
replaced
5560 <xsl:template mode="widget_defs" match="widget[@type='TextStyleList']"> |
5560 <xsl:template mode="widget_defs" match="widget[@type='TextStyleList']"> |
5561 <xsl:param name="hmi_element"/> |
5561 <xsl:param name="hmi_element"/> |
5562 <xsl:text> styles: { |
5562 <xsl:text> styles: { |
5563 </xsl:text> |
5563 </xsl:text> |
5564 <xsl:for-each select="$hmi_element/*[@inkscape:label]"> |
5564 <xsl:for-each select="$hmi_element/*[@inkscape:label]"> |
5565 <xsl:variable name="text" select="func:refered_elements(.)[self::svg:text][1]"/> |
5565 <xsl:variable name="style" select="func:refered_elements(.)[self::svg:text]/@style"/> |
5566 <xsl:variable name="tspan" select="$text/svg:tspan[1]"/> |
|
5567 <xsl:variable name="style"> |
|
5568 <xsl:choose> |
|
5569 <xsl:when test="$text/@style and $tspan/@style"> |
|
5570 <xsl:value-of select="$text/@style"/> |
|
5571 <xsl:text>;</xsl:text> |
|
5572 <xsl:value-of select="$tspan/@style"/> |
|
5573 </xsl:when> |
|
5574 <xsl:otherwise> |
|
5575 <xsl:value-of select="$text/@style"/> |
|
5576 <xsl:value-of select="$tspan/@style"/> |
|
5577 </xsl:otherwise> |
|
5578 </xsl:choose> |
|
5579 </xsl:variable> |
|
5580 <xsl:text> </xsl:text> |
5566 <xsl:text> </xsl:text> |
5581 <xsl:value-of select="@inkscape:label"/> |
5567 <xsl:value-of select="@inkscape:label"/> |
5582 <xsl:text>: "</xsl:text> |
5568 <xsl:text>: "</xsl:text> |
5583 <xsl:value-of select="$style"/> |
5569 <xsl:value-of select="$style"/> |
5584 <xsl:text>", |
5570 <xsl:text>", |