[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: collapsing number ranges

Subject: Re: collapsing number ranges
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Fri, 27 Aug 2004 09:38:06 -0400
java number ranges
On Aug 27, 2004, at 5:21 AM, Jeni Tennison wrote:

If that's not what you're after, show us the XML of some more examples
and try to put the algorithm that you want into English or

It is basically. I'll see if I can figure out how to move it into a function (as the other posters did) that I can call from different places, and at some point I need to get it closer to the below (much more complex, it seems) example.

A real world algorithm from the Chicago Manual of Style, in English:

1-99				use all digits			3-10, 71-72, 96-117
100 or multiples		use all digits			100-104,
of 100								1100-1113

101-109			use changed part	 only		101-8,
201-209, etc.							1103-4				
110 through 199		use two or more digits		321-28,
210-299, etc.		as needed				498-532,
				But, if three digits change	1496-1504
				in a four-digit number,	2787-2816
				use all four

Ugh ... what a PITA!

I don't expect anyone to actually figure this out for me suffice to say!


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.