Re: [xsl] stripping newlines

Subject: Re: [xsl] stripping newlines
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 5 Sep 2001 17:38:51 +0100
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,'&#10;','')
which removes new lines
or
translate($string,'&#10;',' ')
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


Current Thread