pelegk Posted May 14, 2003 Share Posted May 14, 2003 how do i make a simple counter in xsl in <xsl:for-each > loop? i just want to do : count=count+1 how do i do that? thanks Peleg Link to comment Share on other sites More sharing options...
cjaeger Posted May 14, 2003 Share Posted May 14, 2003 use the position() function Link to comment Share on other sites More sharing options...
pelegk Posted May 15, 2003 Author Share Posted May 15, 2003 using the position isn't correct beacuse i need in every call to use diffrent parts in the xml,while position is giving me the (index) placein the xml, and i need always to count from 1 to 10! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7663 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now