RE: [xsl] Auto-Numbering with conditions

Subject: RE: [xsl] Auto-Numbering with conditions
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 16 May 2003 09:10:57 +0300
Hi

> But, what I really want is to modify the conditions so that 
> when there is more
> than one and less than 10 steps I can apply styles "abc" and 
> when there is more
> than 10 or more steps, apply styles "xyz".

E.g.

  <xsl:variable name="count" select="count(../step)"/>
  <xsl:choose>
    <xsl:when test="$count = 0"/>
    <xsl:when test="$count = 1">
      <!--one-->
    </xsl:when>
    <xsl:when test="$count &lt; 10">
      <!--one to nine-->
    </xsl:when>
    <xsl:otherwise>
      <!--ten or more-->
    </xsl:otherwise>
  </xsl:choose>

Cheers,

Jarno - Hocico: Untold Blasphemies v.3 (accessory mix)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread