XML/XSLT

Discussion in 'XML' started by Anjali, Nov 30, 2004.

  1. Anjali

    Anjali Guest

    Hi,

    I am new to XML/XSLT. I want to read XML value and put it in the
    textbox in XSLT. How do I do that.

    Eg:
    <xsl:for-each select="catalog/cd">
    <tr>
    <td><xsl:value-of select="title"/></td>
    <td><xsl:value-of select="artist"/></td>
    <td><input type="text" name="test"
    value=<xsl:value-of select="country"/>/></td>
    </tr>

    I am able to display title, artist inside <td> but I need to display
    country in a textbox so User can edit it.

    How do I do this.

    Thanks in advance

    Sridevi
    Anjali, Nov 30, 2004
    #1
    1. Advertising

  2. On 30 Nov 2004 15:22:35 -0800, (Anjali) wrote:
    > <td><input type="text" name="test"
    > value=<xsl:value-of select="country"/>/></td>


    <td><input type="text" name="test" value="{country}"/></td>

    or if that doesn't work, or if you prefer verbosity,

    <td>
    <input type="text" name="test">
    <xsl:attribute name="value">
    <xsl:value-of select="country"/>
    </xsl:attribute>
    </input>
    </td>

    --
    Morris M. Keesan --
    Morris M. Keesan, Dec 1, 2004
    #2
    1. Advertising

  3. Anjali

    Anjali Guest

    Thanks Morris, it worked

    Thanks
    Sridevi

    Morris M. Keesan <> wrote in message news:<>...
    > On 30 Nov 2004 15:22:35 -0800, (Anjali) wrote:
    > > <td><input type="text" name="test"
    > > value=<xsl:value-of select="country"/>/></td>

    >
    > <td><input type="text" name="test" value="{country}"/></td>
    >
    > or if that doesn't work, or if you prefer verbosity,
    >
    > <td>
    > <input type="text" name="test">
    > <xsl:attribute name="value">
    > <xsl:value-of select="country"/>
    > </xsl:attribute>
    > </input>
    > </td>
    Anjali, Dec 1, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stylus Studio
    Replies:
    0
    Views:
    651
    Stylus Studio
    Aug 3, 2004
  2. Benjamin Hillsley
    Replies:
    3
    Views:
    1,675
    Dimitre Novatchev
    Sep 25, 2003
  3. ted
    Replies:
    1
    Views:
    619
    Laurens
    Jan 26, 2004
  4. Replies:
    4
    Views:
    667
  5. jkflens
    Replies:
    2
    Views:
    1,459
    jkflens
    May 30, 2006
Loading...

Share This Page