xsl-list
[Top] [All Lists]

Re: collapsing number ranges

2004-08-27 04:39:35

On Aug 27, 2004, at 5:42 AM, David Carlisle wrote:

7777-7778 => 7777-78

not -8 ?

Sorry for the algorithm confusion. It was late, and I probably should have explained that the algorithms vary. So, sometimes they say that, in the above case, it ought to be collapsed to 7777-8, while in other cases 7777-78. I'm happy to just get one of them correctly working for the time being though!

I had implemented a hack that just compared the substrings, but I'll try the more general solutions posted here.

Thanks all!

Bruce