Subject: Re: [xsl] XSL - Counting the number dropshipid nodes processed From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Mon, 10 Oct 2005 20:35:28 +0200 |
<xsl:for-each select="dropshipid"> <xsl:value-of select="position()" /> </xsl:for-each>
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
-- 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL - Counting the number dro, Challa, Harsha | Thread | [xsl] Problem selecting following::, watchstone@xxxxxxxxx |
[xsl] XSL - Counting the number dro, Challa, Harsha | Date | Re: [xsl] Concatenating a nodeset (, Anton Triest |
Month |