Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. Assistance Required

Assistance Required

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlregexhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajanponnalagu
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups