[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: J-P S <jps@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 13:29:52 +0100 (BST)
Re:  collapsing number ranges
On Mon, 30 Aug 2004, Bruce D'Arcus wrote:

) I was just reminded that page numbers aren't always integers.  Example:
)   pp. iii-vi.
)
) I guess that settles it then; better to use substrings in this case.

If they're not integers then surely they don't want to pass through the
substring mill at all, as they'll e.g. turn "xv-xviii" into "xv-iii"
depending on your algorithm. You probably want to test they're numbers
before they go anywhere near the algorithm, by doing something like

	string(number($start)) != 'NaN'

J-P
-- 
I was doing all right, I was a big hit with the emperor;
He said, you and me son, we're both big cats:
We're just a little short on stamina

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.