XSLT For-Each Start a div that opens and closes around every 4th element

prooseptik

New Member
So I have a template that displays staff profiles. Like this:\[code\]<div class="row"> <li></li> <li></li> <li></li> <li></li></div><div class="row"> <li></li> <li></li> <li></li> <li></li></div>\[/code\]In my XSLT For-each loop I need a way to wrap that "div class=row" around every group of 4 list items. I can test for the count to see which element I am on, but the issue is wrapping groups of 4 in XSLT since you can't use modulus.
 
Top