|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Auto-Numbering with conditions
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








