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]

No Subject


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


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