Results 1 to 2 of 2

Thread: Form inputs with XML...

  1. #1

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091

    Unhappy Form inputs with XML...

    I am having the damedest time trying to figure out how to write an HTML form with XML/XSL. Anybody know how to set an input's value = a node's inner value?

    ie :

    ...
    <ITEM>
    <ID>15</ID>
    </ITEM>
    ...

    <xsl:template match="ID">
    <input type="hidden" name="id" value="<xsl:value-of />"/>
    </xsl:template>

    obviously, this method does not work. So, anybody know how I can accomplish this??

    Thanks
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  2. #2

    Thread Starter
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Nevermind, I figured it out.

    For those who want to know, use the xsl:attribute tag to set the value.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

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



Click Here to Expand Forum to Full Width