Bad title, I know. I have a XML file part of which contains a bunch of "Nutrient" elements. I want to display these in a table, 2 nutrients per row. My current XSL is:
<xsl:if test="position() mod 2 != 0">
<td colspan="2" style="font-size: 10pt; font-family: Arial; background-color: #deebde; border-bottom: solid 1px #000000;">
<xsl:value-of select="@Name"/> <xsl:value-of select="@Amount"/>
<xsl:if test="position() mod 2 = 0 or position() = last()">
I put the <tr> and </tr> in CDATA because otherwise it would be angry that I didnt have a closing </tr>. This does not work of course and is also not correct, what is?