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

RE: Help me out on Removing the blankspaces from a te

Subject: RE: Help me out on Removing the blankspaces from a textarea
From: "Mohammed Ashfaq S" <Mohammed.S@xxxxxxxxxxx>
Date: Wed, 20 Oct 2004 12:45:45 +0530
mohammed ashfaq
I have to replace the "@@@" with a new '\ln' in the document which is
dynamic.

I guess translate does not work
-----------------------------------------------------------------------------
---------
function replaceString() {
	regX = new RegExp("\@@@","g") ;
	document.form1.TextArea.value=document.form1.TextArea.value.replace(regX,"\n
");
-----------------------------------------------------------------------------
---------


-----Original Message-----
From: Arun Sinha [mailto:arunsinha666@xxxxxxxxxxx]
Sent: Wednesday, October 20, 2004 12:35 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Help me out on Removing the blankspaces from a
textarea


Hi,

Use the following :-

translate('variable name','@','')

Cheers.

Arun


>From: "Mohammed Ashfaq S" <Mohammed.S@xxxxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>Subject:  Help me out on Removing the blankspaces from a textarea
>Date: Wed, 20 Oct 2004 12:23:32 +0530
>
>Hi All
>
>I have a problem in removing the blank spaces from the textarea in a  .xsl
>file.
>
>Problem description:
>Have to replace the @@@ and with a new line char ('\n')  in the textarea, I
>have used regEx ( JavaScript regular Expression)
>to replace the @@@ characters with a new line ('\n'),But I have noticed
>that a blank space gets appended at the end of the each line
>and hence makes the document unreadable.
>----------------------------------------------------------------------------
-----------------------
>----Original String (that comes from the Server) before display in to the
>textarea in .xsl file---
>
>.hello
>.abcd
>@@@E X A M P L E:2^
>@@@%description%
>@@@.notvoidksdfd@@@%description%||%price% %taxes:r2%
>@@@
>@@@
>@@@.notvoided,voidstatus=VOID,oad=regularasdfasdfa2^
>@@@E X A M P L E
>@@@.regularjsjs
>@@@EXAMPLE CHANGE
>@@@
>@@@ E X A M P L E
>@@@%EXAMPLE DISCOUNTdescription
>@@@
>@@@.regularline EXAMPLE DISCOUNT
>@@@EXAMPLE DISCOUNT
>@@@%EXAMPLE DISCOUNT description
>----------------------------------------------------------------------------
-----------------------
>
>At the end of each line an extra space gets added when I save the document
>and hence makes the document unreadable.
>
>Can anyone provide me with a solution to replace @@@ chars in the String
>before displaying into the textarea?
>
>Thanks for any help in advance
>
>Ashfaq
>

_________________________________________________________________
Seized by wanderlust? Have the best vacation ever.
http://www.msn.co.in/Travel/ Team up with MSN Travel!

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.