title: looping in XSLT - <xsl:for-each
body: <p>I need to render the following format in XSLT. I have a <code>&lt;xsl:for-each</code> loop with 5 elements  (Text1, Text2... Text5) and need to wrap an ul tag after every three elements. Any suggestions please?</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;Text1&lt;/li&gt;
      &lt;li&gt;Text2&lt;/li&gt;
      &lt;li&gt;Text3&lt;/li&gt;
  &lt;/uL&gt;
  &lt;ul&gt;
      &lt;li&gt;Text4&lt;/li&gt;
      &lt;li&gt;Text5&lt;/li&gt;
  &lt;/uL&gt;
  </code></pre>