xsl如何动态生成表格
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<xsl:for-each select="NewDataSet/port">
<xsl:if test="position() mod 2!=0">
<tr>
</xsl:if>
<td height="20"><xsl:value-of select="portname"/></td>
<xsl:if test="position() mod 2=0">
</tr>
</xsl:if>
</xsl:for-each>
</table>
但告诉我标记未关闭,怎么办呢?生成一个二列的表格