Subject: Re: replacing a character with a string
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 10 Apr 2002 16:54:18 +0100
|
> 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
|