[xsl] dynamic html table generation

Subject: [xsl] dynamic html table generation
From: "Garvin Riensche" <g.riensche@xxxxxxx>
Date: Sat, 25 Oct 2003 22:12:49 +0200
Hi there,

I have the following problem. I do have some elements (not knowing their
count) and want to insert them into table-columns where always after 4
inserted elements the next 4 elements should be stored in the next column. I
have alreaday done this with always beginning a new _row_ every 4 elements.
that could be done with 2 loops (a1 are the elements that should be stored):

<table>
  <xsl:for-each select="a1[position() mod 4 = 1]">
    <tr>
      <xsl:for-each select=".|following-sibling::*[position() &lt;4]">
        <td>
          <xsl:value-of select="."/>
        </td>
      </xsl:for-each>
    </tr>
  </xsl:for-each>
</table>

But how can that be done with columns?

regards,
Garvin


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread