Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

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/><input 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/ROWSET/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 &lt; $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
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

Move  </table>  ---------------------------------------------------- [[this table]] after
<xsl:call-template name="firstone">
      <xsl:with-param name="limit" select="count(//FIRST/ROWSET/ROW)"/>
    </xsl:call-template>

Resulting XSL:

<xsl:call-template name="firstone">
      <xsl:with-param name="limit" select="count(//FIRST/ROWSET/ROW)"/>
    </xsl:call-template>
</table>
ASKER CERTIFIED SOLUTION
Avatar of YZlat
YZlat
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial