I am trying to build a html table with xml data and start a new row with my xsl:if test="expression" I am getting an error with the </td> tag. I surrounded the problem with stars. Any ideas how to get a new row here?
please help.
Liz
<xsl:template match="/">
<table class="navSelectedTable" cellspacing="3" width="100%">
<tr><td>
<xsl:for-each select="//Policy//MenuItem">
******************************error here ("End tag 'td' does not match the start tag 'xsl:if'"
******************************
<xsl:if test="total < 5">
</td></tr><tr><td
</xsl:if>
******************************
<a target="inquiries" class="navItem">
<xsl:attribute name="href">
<xsl:value-of select="URL" />
</xsl:attribute>
<xsl:value-of select="Display" />
</a>
</xsl:for-each>
</td></tr>
</table>
</xsl:template>
please help.
Liz
<xsl:template match="/">
<table class="navSelectedTable" cellspacing="3" width="100%">
<tr><td>
<xsl:for-each select="//Policy//MenuItem">
******************************error here ("End tag 'td' does not match the start tag 'xsl:if'"
******************************
<xsl:if test="total < 5">
</td></tr><tr><td
</xsl:if>
******************************
<a target="inquiries" class="navItem">
<xsl:attribute name="href">
<xsl:value-of select="URL" />
</xsl:attribute>
<xsl:value-of select="Display" />
</a>
</xsl:for-each>
</td></tr>
</table>
</xsl:template>