svghmi/gen_dnd_widget_svg.xslt
changeset 3414 0ff608310312
parent 3410 eac5832a1489
child 3478 c04c6db09eff
child 3506 ca312be56929
--- a/svghmi/gen_dnd_widget_svg.xslt	Wed Jan 19 08:53:49 2022 +0100
+++ b/svghmi/gen_dnd_widget_svg.xslt	Wed Jan 19 08:56:16 2022 +0100
@@ -31,7 +31,7 @@
         </xsl:otherwise>
       </xsl:choose>
     </xsl:variable>
-    <xsl:variable name="freq" select="substring-after($typefreq,':')"/>
+    <xsl:variable name="freq" select="substring-after($typefreq,'|')"/>
     <xsl:variable name="_type" select="substring-before($typefreq,'|')"/>
     <xsl:variable name="type">
       <xsl:choose>
@@ -51,8 +51,8 @@
         <xsl:attribute name="type">
           <xsl:value-of select="$type"/>
         </xsl:attribute>
-        <xsl:if test="freq">
-          <xsl:attribute name="frequency">
+        <xsl:if test="$freq">
+          <xsl:attribute name="freq">
             <xsl:value-of select="$freq"/>
           </xsl:attribute>
         </xsl:if>