svghmi/gen_dnd_widget_svg.xslt
changeset 3495 f422d3d71f89
parent 3414 0ff608310312
child 3507 e87a2daace80
equal deleted inserted replaced
3494:435259844a64 3495:f422d3d71f89
    50         </xsl:attribute>
    50         </xsl:attribute>
    51         <xsl:attribute name="type">
    51         <xsl:attribute name="type">
    52           <xsl:value-of select="$type"/>
    52           <xsl:value-of select="$type"/>
    53         </xsl:attribute>
    53         </xsl:attribute>
    54         <xsl:if test="$freq">
    54         <xsl:if test="$freq">
       
    55           <xsl:if test="not(regexp:test($freq,'^[0-9]*(\.[0-9]+)?[smh]?'))">
       
    56             <xsl:message terminate="yes">
       
    57               <xsl:text>Widget id:</xsl:text>
       
    58               <xsl:value-of select="$id"/>
       
    59               <xsl:text> label:</xsl:text>
       
    60               <xsl:value-of select="$label"/>
       
    61               <xsl:text> has wrong syntax of frequency forcing </xsl:text>
       
    62               <xsl:value-of select="$freq"/>
       
    63             </xsl:message>
       
    64           </xsl:if>
    55           <xsl:attribute name="freq">
    65           <xsl:attribute name="freq">
    56             <xsl:value-of select="$freq"/>
    66             <xsl:value-of select="$freq"/>
    57           </xsl:attribute>
    67           </xsl:attribute>
    58         </xsl:if>
    68         </xsl:if>
    59         <xsl:for-each select="str:split(substring-after($args, ':'), ':')">
    69         <xsl:for-each select="str:split(substring-after($args, ':'), ':')">