URGENT multilayed table using one attribute
Right im trying to output into a table format an element from my xml file so that it goes ----> then inserts a new row after say 5 elements. this is what i've got so far but because of the </TR><TR> which will always logically produce valid xml it wont work. Any ideas i have a *tight* deadline and im panicing
<TABLE><TR>
<xsl:for-each select="./single_system_master_report/run_context">
<TD width = "20%">
<xsl:element name="A">
<xsl:attribute name="HREF"><xsl:value-of select="./explored_system/hostname" />.<xsl:value-of select="./explored_system/hostid" />.contents.html</xsl:attribute>
<xsl:value-of select="./explored_system/hostname" />
</xsl:element>
</TD>
<xsl:when test="position() mod 5 = 1">
</TR><TR>
</xsl:when>
</xsl:for-each>
</TR></TABLE>
|