Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 17, 2012 06:42 PM by tmt2012
0 Points
3 Posts
Nov 16, 2012 03:31 AM|LINK
How do you increment a count in a for each in xsl? Position counts records not met by when condition.
for each when... increment count to apply logic
All-Star
118619 Points
18779 Posts
Nov 17, 2012 12:12 AM|LINK
tmt2012 How do you increment a count in a for each in xsl?
What do you mean?
Can you elebrate it more clearly?
Reguards & Thanks!
Nov 17, 2012 04:07 AM|LINK
I don't think I can do this in xsl. I need to loop through records. When a condition is met do something if the count is 1, do something if the count is 2, etc. The problem is xsl counts all the records, not just the ones that meet the condition.
Nov 17, 2012 08:10 AM|LINK
tmt2012 tmt2012
So is your problem solved? Welcome your feedback or futher of your xml contents and show us what you do.
Or just make yours as an answer.
Reguards!
Nov 17, 2012 06:42 PM|LINK
It's not possible.
tmt2012
0 Points
3 Posts
increment a count
Nov 16, 2012 03:31 AM|LINK
How do you increment a count in a for each in xsl? Position counts records not met by when condition.
for each
when...
increment count to apply logic
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: increment a count
Nov 17, 2012 12:12 AM|LINK
What do you mean?
Can you elebrate it more clearly?
Reguards & Thanks!
tmt2012
0 Points
3 Posts
Re: increment a count
Nov 17, 2012 04:07 AM|LINK
I don't think I can do this in xsl. I need to loop through records. When a condition is met do something if the count is 1, do something if the count is 2, etc. The problem is xsl counts all the records, not just the ones that meet the condition.
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: increment a count
Nov 17, 2012 08:10 AM|LINK
So is your problem solved? Welcome your feedback or futher of your xml contents and show us what you do.
Or just make yours as an answer.
Reguards!
tmt2012
0 Points
3 Posts
Re: increment a count
Nov 17, 2012 06:42 PM|LINK
It's not possible.