xsl-list
[Top] [All Lists]

RE: Auto-Numbering with conditions

2003-05-15 23:10:57
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



<Prev in Thread] Current Thread [Next in Thread>