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

Re: removing crlf character with out white spaces

Subject: Re: removing crlf character with out white spaces
From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Nov 2010 00:15:21 -0600
Re:  removing crlf character with out white spaces
On Fri, Nov 12, 2010 at 7:02 PM, ram <ram_kurra@xxxxxxxxxxx> wrote:
>     Still i was wondering is there a way that  we can remove the spaces from
the character ~       to linefeed/eod  like the following

If the number of spaces between the tilde (~) and the linefeed might
vary, you'd either have to:

   a. test separately for every possible case and eliminate them one
by one (very ugly and error-prone),
   b. rely on a regular expression extension function, if your
processor supports one (not very portable) or
   c. write a recursive named template to walk through the string,
keeping track of the starting position of each string of characters
you might want to remove and executing the removal when you've reached
the linefeed (non-trivial, but a good, powerful technique to have at
your disposal).

-Brandon :)

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.