www.webdeveloper.com
Results 1 to 1 of 1

Thread: If checkbox is checked then save entire row data in file using xsl

  1. #1
    Join Date
    Jun 2012
    Posts
    4

    Arrow If checkbox is checked then save entire row data in file using xsl

    I have a table in each row having checkbox and to find if checkbox is checked then only the data of that row is to be saved in text file using xslt

    for this I have some xsl code

    <xsl:for-each select="session">
    <tr class="session{position() mod 2}">
    <td>
    <input name="mycheckbox1" type="checkbox" checked="Y" value="Y"> </input>
    <xsl:for-each select="data">
    <xsl:value-of select="."/>// this line is used to display data in tabular format
    <xsl:if test=". = ''">&#160;</xsl:if>
    <xsl:if test="$totalvalue &gt; 0">
    <span class="perc">
    (<xsl:value-of select="format-number(number(.) div $totalvalue,'###&#37;')"/>)
    </span>
    </xsl:if>
    </td>
    </xsl:for-each>
    </td>
    </tr></xsl:for-each>



    Thanks in advance
    Last edited by aks1984; 06-22-2012 at 02:49 AM. Reason: type more info

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles