Re: [xsl] removing crlf character with out white spaces

Subject: Re: [xsl] removing crlf character with out white spaces
From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Nov 2010 00:15:21 -0600
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