XSL strings : checking string length

Created 18 February 2004 00:00
Example 1: Checking string length

  <xsl:choose>
    <xsl:when test="string-length(@sec) >= 12">
      <xsl:value-of select="substring(@sec,0,12)"/>...
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="@sec"/>
    </xsl:otherwise>
  </xsl:choose>