This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: textarea bug?
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: AW: [xsl] textarea bug?
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- Date: Sat, 21 Apr 2001 16:25:37 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
If you're using XSLT, use:
<textarea name="{@name}"><xsl:value-of select="@value"/></textarea>
otherwise try
<textarea><xsl:attribute name="name"><xsl:value-of
select="@name"/></xsl:attribute><xsl:value-of select="@value"/></textarea>
-----Ursprüngliche Nachricht-----
Von: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Im Auftrag von the matrix
Gesendet: Samstag, 21. April 2001 16:13
An: xsl-list@lists.mulberrytech.com
Betreff: [xsl] textarea bug?
I get the close textarea tag before the value. Is this
a bug or am I doing something wrong:
XML:
<TAREA name="comments" value="this is my comment"/>
XSL:
<xsl:template match="TAREA">
<xsl:element name="textarea">
<xsl:attribute
name="name"><xsl:value-of
select="@NAME"/></xsl:attribute>
</xsl:element>
<xsl:value-of select="@VALUE"/>
<xsl:element name="/textarea"/>
</xsl:template>
here is the HTML output:
<textarea name="comments"></textarea>this is my comment
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list