RE: number() from 0

Subject: RE: number() from 0
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 1 Dec 2000 11:11:43 -0000
> Is it possible to start <xsl:number> from 0? 

Not directly.

Use
 <xsl:variable name="n"><xsl:number/></xsl:variable>
 <xsl:value-of select="$n - 1"/>

This won't work, of course, with level=multiple or with formats like Roman
numerals.

Mike Kay 


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


Current Thread