Subject:How can i display the elements in two 's Author:Manzoor Mohiuddin Date:13 Mar 2005 04:25 AM
Hi everyone,
In my XSL page i want to display the elements in two td's, if ia m using for loop
within TD's the elements displaying in a single <td> instead in seperate <tr>
like this
<table>
<tr>
<td>
'if an using condition to display in two td's
<xsl:for-each select="Content/list[position()mod 2=1]">
element 1
element 2.....
</td>
<td>
<xsl:for-each select="Content/list[position()mod 2=0]">
element 3
element 4.....
</td>
</tr>
</table>
i want the output in the below format
<table>
<tr>
<td>
element 1
</td>
<td>
element 2
</td>
</tr>
<tr>
<td>
'if an using condition to display in two td's
element 3
</td>
<td>
element 4
</td>
</tr>
</table>