title: Sharepoint 2010 xslt dataview : modify table structure to display list item
body: <p>I have an image list to be display.
  Standard template in SharePoint, each item will be looping using xsl:for-each and display in a table as single row like sample below</p>
  
  <pre><code> __________   
  |          |  
  |  image   |  
  |__________|  
   __________   
  |          |  
  |  image   |  
  |__________| 
   __________
  |          |  
  |  image   |  
  |__________|  
   __________   
  |          |  
  |  image   |  
  |__________|
  </code></pre>
  
  <p>simple code for this :</p>
  
  <pre><code>&lt;xsl:for-each select="$Rows"&gt;
     &lt;tr&gt;
        &lt;td&gt;&lt;xsl:value-of ......./&gt; &lt;/td&gt;
     &lt;/tr&gt;
  &lt;/xsl:for-each&gt;
  </code></pre>
  
  <p>what i need to do is to display 3 item in each row as sample below</p>
  
  <pre><code> __________     __________     __________
  |          |   |          |   |          |
  |  image   |   |  image   |   |  image   |
  |__________|   |__________|   |__________|
   __________     __________     __________
  |          |   |          |   |          |
  |  image   |   |  image   |   |  image   |
  |__________|   |__________|   |__________|
  </code></pre>
  
  <p>How can I do this in xslt using looping. </p>