This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: number() from 0


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]