chaitu chaitu
asked on
html table problem in xsl
<table width="820" border="1" cellspacing="1" cellpadding="2"> --------- starting table
<tr class='formheader'>
<td align ='center'>Select<br/><inpu t type="checkbox" name="houseCheckAll">
<xsl:attribute name="onClick">
checkAll(<xsl:value-of select="count(//ROW)"/>)
</xsl:attribute>
</input>
</td>
<td width="95" align='center' id="td1">HAWB No</td>
</tr>
</table> -------------------------- ---------- ---------- ------ [[this table]]
<xsl:call-template name="firstone">
<xsl:with-param name="limit" select="count(//FIRST/ROWS ET/ROW)"/>
</xsl:call-template>
<xsl:call-template name="secondone">
</xsl:call-template>
</xsl:template>
<xsl:template name="firstone">
<xsl:for-each select ="FIRST/ROWSET/ROW[not(ID = preceding::ROW/ID)]">
<xsl:variable name='ctr' select='position()-1'/>
<xsl:if test = "$ctr < $limit">
<tr>
<td align="center">
<input type="checkbox" id="houseCheck{(position() -1)}" name="houseCheck" value='{ID}'>
<xsl:attribute name="{ST}"/>
</input>
</td>
<td width="95" >
<input type="hidden" id="houseDocId{position()} " name="houseDocId" value="{ID}"/>
</td>
</tr>
</xsl:if>
</table>
<xsl:call-template name="firstone">
<xsl:with-param name="ctr" select="($ctr+1)"/>
<xsl:with-param name="limit" select="$limit"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
</table> .......................... .......... .......... .......... .......... .... closing table
in xsl i am getting table row problem
can i close this [[this table]] after firstone xsl:template
or should i close table before staring firstone xsl:template
i want to close the table after firstone xsl:template
<tr class='formheader'>
<td align ='center'>Select<br/><inpu
<xsl:attribute name="onClick">
checkAll(<xsl:value-of select="count(//ROW)"/>)
</xsl:attribute>
</input>
</td>
<td width="95" align='center' id="td1">HAWB No</td>
</tr>
</table> --------------------------
<xsl:call-template name="firstone">
<xsl:with-param name="limit" select="count(//FIRST/ROWS
</xsl:call-template>
<xsl:call-template name="secondone">
</xsl:call-template>
</xsl:template>
<xsl:template name="firstone">
<xsl:for-each select ="FIRST/ROWSET/ROW[not(ID = preceding::ROW/ID)]">
<xsl:variable name='ctr' select='position()-1'/>
<xsl:if test = "$ctr < $limit">
<tr>
<td align="center">
<input type="checkbox" id="houseCheck{(position()
<xsl:attribute name="{ST}"/>
</input>
</td>
<td width="95" >
<input type="hidden" id="houseDocId{position()}
</td>
</tr>
</xsl:if>
</table>
<xsl:call-template name="firstone">
<xsl:with-param name="ctr" select="($ctr+1)"/>
<xsl:with-param name="limit" select="$limit"/>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
</table> ..........................
in xsl i am getting table row problem
can i close this [[this table]] after firstone xsl:template
or should i close table before staring firstone xsl:template
i want to close the table after firstone xsl:template
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<xsl:call-template name="firstone">
<xsl:with-param name="limit" select="count(//FIRST/ROWS
</xsl:call-template>
Resulting XSL:
<xsl:call-template name="firstone">
<xsl:with-param name="limit" select="count(//FIRST/ROWS
</xsl:call-template>
</table>