This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: looking for the / char



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]