This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: looking for the / char
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] looking for the / char
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Sun, 4 Feb 2001 17:15:49 GMT
- References: <a05001905b6a283b22ed3@[192.168.254.9]>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> fine.... however it wont replace the /.... Im not sure why
because having found a space you output the string up to that point without
change, which means that any / before the first space gets into the
output.
You then recurse looking for spaces and so do the same for teh next /.
You can't do two replacements at once like that, make a replace-string
template (or get one from the archives of this list) then in an outer
call that replaces spaces, make an inner call to replace /
on the string found before the current space.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list