xsl-list
[Top] [All Lists]

Re: XSL - Counting the number dropshipid nodes processed

2005-10-10 11:35:28
<xsl:for-each select="dropshipid">
  <xsl:value-of select="position()" />
</xsl:for-each>

:)

Challa, Harsha wrote:

Hello xsl gurus,

I have the following code which needs to be done in xsl.
I am processing a couple of dropshipid nodes. I want to keep a counter and
print the counter as I process the nodes using XSL. (Similar to whar we do in C programming language etc/
i = 0 (initiatise)
print (i++) )

Can someone let me know how this can be achieved

XML
<dropshipid>xxx</dropshipid>
<dropshipid>yyy</dropshipid>
<dropshipid>yyy</dropshipid>

thanks
Harsha




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--
Drs. G.P.H. Josten
Consultant



Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>