This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: replacing a character with a string
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 10 Apr 2002 16:54:18 +0100
- Subject: Re: [xsl] replacing a character with a string
- References: <003001c1e0a4$af8d3590$66b445ab@amer.cisco.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> Is there a way to replace a character with a string
yes or a fragment of xml 9see replace templates in teh archives of this
list or at jeni's site or in dave p's faq)
nd I want to replace
> all the hard returns with </fo:block><fo:block>. I can capture the returns
> by looking for 

But that isn't a string it's a non-weel formed fragment. So replacing
newlines by that isn't the xsl way, you want to chunk your original
string and surround each chunk by an fo:block element.
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