I have a XML similar to this
<a>
<b>text1</b>
<b>text2</b>
<b>text3</b>
.....
....
</a>
This is the output required
<div>text1 text2</div>
<div>text3 text4</div>
Adding a wrapping div for all the text or adding individual div’s for each text is easy with the xsl foreach. How can I accomplish the above requirement where div needs to added for 2 texts at a time?
1 Answer