Bookmark Topic Watch Topic
  • New Topic

Break the loop in XSL

 
neha gowda
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi guys,
I am checking for a condition in a for loop. if the condition is met I print a cell (<td> ....</td> , but only once.
The condition can be true more than once,but if once the condition is met I want to print a cell.
how do I come out of the loop once the condition is met. Is there any increment function.
Please help.
regards
Neha
 
Hari Vignesh Padmanaban
Ranch Hand
Posts: 578
  • Mark post as helpful
  • send pies
  • Report post to moderator
There is no break statement in XSl.
I guess you would have to use recursive calls to a template to achive this!!!
i am not exactly sure how u woudl implemnt it though!!
Good luck !!!
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Neha, please don't crosspost the same question in several forums.
Ranchers, please continue the discussion in the other thread. I'm closing this one.
 
    Bookmark Topic Watch Topic
  • New Topic