|
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 < 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Auto-Numbering with condition, waldron . Navix | Thread | RE: [xsl] Auto-Numbering with condi, waldron . Navix |
| [xsl] Auto-Numbering with condition, waldron . Navix | Date | RE: [xsl] xml to xml transformation, Jarno . Elovirta |
| Month |