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: strange problem with string-replace




> David Carlisle's code (shame on him!) recurses infinitely if
> the value of "from" is an empty string.

I think infinite recursion is probably the provably correct response to
a request to replace every null substring in a string by something else.

I must have had (mustn't I?) a formal specification of the pre and post
conditions of the function when I wrote it, but I seem to have mislaid
them somewhere....

Hurt of Oxford


 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]