[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] textarea bug?


Subject: [xsl] textarea bug?
From: the matrix <matrxuk@xxxxxxxxxxx>
Date: Sat, 21 Apr 2001 15:12:58 +0100 (BST)

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 @... address at http://mail.yahoo.co.uk
or your free @... address at http://mail.yahoo.ie

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread