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

RE: copy-of select in textaereas

Subject: RE: copy-of select in textaereas
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Mon, 2 Dec 2002 09:31:42 -0800
onchange copy
Hi,

It seems to me that the simplest thing (???) would be to use an element for the
value in the source XML instead of an attribute. Then your copy-of would work as
expected (you are asking it to copy an attribute and that is what it is doing).
Is that possible?

best,
-Rob

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Sylvia Egger
> Sent: Monday, December 02, 2002 9:13 AM
> To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx'
> Subject:  copy-of select in textaereas
>
>
> Hi,
>
> i'd like to print out some content in a textaerea.
> if i use "value-of select" then i get the content but not
> the e.g. the carrige returns.
>
> the carriage returns are existing in database and xml.
> but if i try to get the content with carriage return using
> "copy-of select" i get this result:
>
> XSLT:
> this works fine without carriage returns:
> <textarea name="{@name}" onChange="{@onchange}" onclick="{@onclick}"
> rows="4" cols="10"><xsl:value-of select="@value"/></textarea>
>
> this doesn't work at all:
> <textarea name="{@name}" onChange="{@onchange}" onclick="{@onclick}"
> rows="4" cols="10"><xsl:copy-of select="@value"/></textarea>
>
> HTML:
> result with value-of select:
> <textarea name="buchung" onChange="" onclick="form_aenderung()" rows="4"
> cols="10">hallo das ist ein test  das ist ein text  das ist ein
> text</textarea>
>
> result with copy-of select:
> <textarea name="buchung" onChange="" onclick="form_aenderung()" rows="4"
> cols="10" value="hallo das ist ein test  das ist ein text  das ist ein
> text"></textarea>
>
> the value will be printed into the textarea-tag?
>
> do you have a kind of hint how to get the content with carriage returns
> printet into the textaerea. maybe it's that easy. but i didn't get it
> actually.
>
> thanks a lot,
>
> sylvia e.
>
>  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.