Assistance Required
-
Hello, I have one .xsl file. It is used to rendered the data from XML and displaying in HTML format. I want to do editing functionlities(add, edit,modify& delete) in a table.Like there is some default values has been displayed. I need to modify the data. Please help me, it is very urgent for me. Thanks in advance. The code is like this: <xsl:template match="row"> <tr style="background-color:#E8E8E8"> <xsl:for-each select="td"> xsl:choose <xsl:when test="./@first"> <td align="left" width="20px"><input name="radio_field" type="checkbox" style="border-color:white;background-color:#E8E8E8;cursor:pointer" onClick="provideAccess();changeBackcolor(this);"> <xsl:attribute name="id"><xsl:value-of select="attribute::name"/></xsl:attribute> </input></td> </xsl:when> <xsl:when test="@last='true'"> <td align="left" width="10px" ><xsl:value-of select="./text()"/></td> </xsl:when> <xsl:when test="@editable" ='true' "> <td align="left" width="20px"><input name="textbox" type="text" style="border-color:white;background-color:#E8E8E8;cursor:pointer" onClick="provideAccess();changeBackcolor(this);"> <xsl:attribute name="id"><xsl:value-of select="attribute::name"/></xsl:attribute> </input></td> </xsl:when> xsl:otherwise <td align="left"> xsl:choose <xsl:when test="position()=last()"> <xsl:attribute name="width">100%</xsl:attribute> <xsl:value-of select="./text()"/> </xsl:when> xsl:otherwise <xsl:variable name="pos" select="position()"/> <xsl:attribute name="width"><xsl:value-of select="//th[position()=$pos]/@w"/>px</xsl:attribute> <xsl:value-of select="./text()"/> </xsl:otherwise> </xsl:choose> </td> </xsl:otherwise> </xsl:choose> </xsl:for-each> </tr> </xsl:template> <xsl:template match="tf"> <input style="font-weight:bold; cursor:pointer; color: #0b3378" > <xsl:attribute name="type"><xsl:value-of select="@type"/></xsl:attribute> <xsl:attribute name="onClick">&l