xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] collapsing number ranges


Subject: Re: [xsl] collapsing number ranges
From: J-P S <jps@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Aug 2004 13:29:52 +0100 (BST)

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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor