|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: getting the counter for a for-each statement
I'm a bit of an XSL beginner, but can't the position() function be used here? -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jaime A Stuardo Bahamondes Sent: Thursday, December 11, 2003 12:13 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: getting the counter for a for-each statement Hi all.. I have this for-each: <xsl:for-each select="ROW[count(. | key('tipos_calculo', DET_TIPO_CAL_ID)[1]) = 1]"> <xsl:value-of select="count" /> </xsl:for-each> I neet to get the index of each iteration. For example, suppose that for-each loops 3 times, so, the output would be: 1 2 3 Any help? Thanks Jaime XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








