svghmi/gen_index_xhtml.xslt
branchsvghmi
changeset 3191 26b7c4aa7b38
parent 3190 80dd371e15bb
parent 3185 9038655c1b18
child 3195 cdd2a032b424
--- a/svghmi/gen_index_xhtml.xslt	Tue Mar 16 14:19:22 2021 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Wed Mar 17 11:07:29 2021 +0100
@@ -5562,21 +5562,7 @@
     <xsl:text>    styles: {
 </xsl:text>
     <xsl:for-each select="$hmi_element/*[@inkscape:label]">
-      <xsl:variable name="text" select="func:refered_elements(.)[self::svg:text][1]"/>
-      <xsl:variable name="tspan" select="$text/svg:tspan[1]"/>
-      <xsl:variable name="style">
-        <xsl:choose>
-          <xsl:when test="$text/@style and $tspan/@style">
-            <xsl:value-of select="$text/@style"/>
-            <xsl:text>;</xsl:text>
-            <xsl:value-of select="$tspan/@style"/>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:value-of select="$text/@style"/>
-            <xsl:value-of select="$tspan/@style"/>
-          </xsl:otherwise>
-        </xsl:choose>
-      </xsl:variable>
+      <xsl:variable name="style" select="func:refered_elements(.)[self::svg:text]/@style"/>
       <xsl:text>        </xsl:text>
       <xsl:value-of select="@inkscape:label"/>
       <xsl:text>: "</xsl:text>