Subject: RE: [xsl] wierd textarea behaviour with xsl From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 12 Nov 2002 11:15:04 -0500 |
So to try and force a value into the box I used an xsl choose.
<textarea rows="5" cols="40" name="comment" class="textbox"> <xsl:choose> <xsl:when test="(./currentStatus/comment)"> <xsl:choose> <xsl:when test="./currentStatus/comment != ''"> <xsl:value-of select="./currentStatus/comment"/> </xsl:when> <xsl:otherwise> No comments. </xsl:otherwise> </xsl:choose> </xsl:when> </xsl:choose> </textarea>
This has fixed it. Man, what a verbose way of having to populate a comment box.
<textarea rows="5" cols="40" name="comment" class="textbox"> <xsl:value-of select="currentStatus/comment"/> <xsl:if test="not(currentStatus/comment)">No comments.</xsl:if> </textarea>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] wierd textarea behaviour , David Carlisle | Thread | RE: [xsl] wierd textarea behaviour , TSchutzerWeissmann |
Re: [xsl] wierd textarea behaviour , David Carlisle | Date | RE: [xsl] wierd textarea behaviour , Yates, Danny (ANTS) |
Month |