This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: stripping newlines
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] stripping newlines
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Wed, 5 Sep 2001 17:38:51 +0100
- References: <3936FA5B910BD411BC0600902771C7F201043828@prism.cisco.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
If $string is a variable containg the script you've generated, then
use any of
normalize-space($string)
(which does more than just remove new lines)
or
translate($string,' ','')
which removes new lines
or
translate($string,' ',' ')
which removes new lines and replaces them by spaces.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list