R
ree32
I am new to XSL but I need to create a display where the layout is
<tr> <td> <item/ ></td> <td> <item/ ></td> </tr>
<tr> <td> <item/ ></td> <td> <item/ ></td> </tr>
and so on ..
A column table.
But inorder to this I am trying to do the following
<xsl:if test="position() mod 2 = 0">
<tr>
</xsl:if>
<xsl: something .. to add <td> <item/ ></td>
<xsl:if test="position() mod 2 = 0">
</tr>
</xsl:if>
But it wont let me use the open tag <tr>, is there a way around using
open tags. If not is there a solution to achieve what I am after ?
<tr> <td> <item/ ></td> <td> <item/ ></td> </tr>
<tr> <td> <item/ ></td> <td> <item/ ></td> </tr>
and so on ..
A column table.
But inorder to this I am trying to do the following
<xsl:if test="position() mod 2 = 0">
<tr>
</xsl:if>
<xsl: something .. to add <td> <item/ ></td>
<xsl:if test="position() mod 2 = 0">
</tr>
</xsl:if>
But it wont let me use the open tag <tr>, is there a way around using
open tags. If not is there a solution to achieve what I am after ?