This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xml data in an editable text field
- To: xsl-list at mulberrytech dot com
- Subject: Re: xml data in an editable text field
- From: Michael Hoffmann <m-hoffmann at ti dot com>
- Date: Wed, 29 Nov 2000 08:08:08 +0100
- Organization: Texas Instruments
- References: <3A242A35.9E97BDA@sixredmarbles.com>
- Reply-To: xsl-list at mulberrytech dot com
tim
try something like
<form name="author" onSubmit="0">
<input type="text">
<xsl:attribute name="name">authorname</xsl:attribute>
<xsl:attribute name="size">20</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="author/name"
/></xsl:attribute>
</input>
</form>
this generates a textfiled with the "author" name in it... its editable
and you
have to playd with "submit" if u want to pass the changed text...
hope this helps
michael
Tim Brady wrote:
>
> I am trying to put XML data in an editable text field. Here is a sample
> of the XML data:
> <Contact>
> <combinedName>Bob Smith</combinedName>
> <company>Acme</company>
> <title>President</title>
> </Contact>
>
> Here is some code from my XSL file:
> <xsl:template match="/">
>
> <xsl:for-each select="Contact">
>
> <xsl:value-of select="combinedName"/>
>
> </xsl:for-each>
>
> What I want to be able to do is to put the combinedName into an editable
> text field like this:
> <input type="text" name="combinedName" value="Bob Smith"/>
>
> How do I write that in my XSL file?
>
> Thanks,
> Tim
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list