This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
No Subject
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- From: kapil <kapil at optechsolutions dot com>
- Date: Wed, 17 Jan 2001 12:13:08 +0530
- Reply-To: xsl-list at lists dot mulberrytech dot com
i want numbering in reports means serial no in table
<xsl:template match="*">
<xsl:value-of select="count(preceding::* | ancestor::*) + 1" /> <xsl:text>. </xsl:text> <xsl:value-of select="name()" /> <xsl:apply-templates /> </xsl:template>
but on report i got
1
3
5
7
with 0
and with <xsl:value-of select="count(preceding::* | ancestor::*) + 1
i got
2
4
6
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list