On Fri, Nov 12, 2010 at 7:02 PM, ram <ram_kurra(_at_)yahoo(_dot_)co(_dot_)in>
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 :)
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--