[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: 2 questions about textarea

Subject: RE: 2 questions about textarea
From: Ben Robb <Ben@xxxxxxxxxx>
Date: Fri, 24 Sep 1999 09:23:40 +0100
textarea empty value
I'll have to think about the first question a bit longer, but I think I have
the answer to question 2:

What is your XML structure like? If it went something like

**************************************************************
XML SNIP
*************************************************************
<nothing>
	<line>line 1</line>
	<line>line 2</line>
	<line>line 3</line>
</nothing>
***************************************************************

then you could match templates:

****************************************************************
XSL SNIP
****************************************************************
<textarea name="a"><xsl:apply-templates match="line"/></textarea>

<xsl:template match="line">
	<P><xsl:value-of select="."/></P>
</xsl:template>
****************************************************************

That would seem the most logical way to do it.

Hope that helps,

Ben Robb
cScape.


> -----Original Message-----
> From: terencek@xxxxxxxxxxxx [mailto:terencek@xxxxxxxxxxxx]
> Sent: 24 September 1999 01:11
> To: XSL-List@xxxxxxxxxxxxxxxx
> Subject: 2 questions about textarea
> 
> 
> I am using LotusXSL.
> 
> 1. If you have an empty value within textarea as: <textarea
> name="a"><xsl:value-of select="nothing"/></textarea> where 
> "nothing" is
> empty. It will output <textarea name="a"/>. I want <textarea
> name="a"></textarea>. Is there any way to work around this problem?
> 2. if I have a text value with multiple string, how can I put <P/> for
> each line break? For example, if the value for nothing multiple line
> string as:
>   line 1
>   line 2
>   line 3
> and I want to put it in a textarea as: <textarea 
> name="a"><xsl:value-of
> select="nothing"/></textarea>. How can I put the line break there.
> 
> Thanks
> 
> TK
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.