This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: number() from 0
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: number() from 0
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Fri, 1 Dec 2000 11:11:43 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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