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

RE: xsl:number question (XSLT 1.0)

Subject: RE: xsl:number question (XSLT 1.0)
From: JBryant@xxxxxxxxx
Date: Fri, 15 Apr 2005 11:05:42 -0500
xslt between
>> I can see where Mike Kay got his implementation, though: 
>> "separated from 
>> the preceding number by the separator token preceding the 
>> format token 
>> used to format that number". However, the "after the first" 
>> part makes me 
>> think that the opening "(" should not apply to numbers after 
>> the first. 

> Heh? The sentence says specifically that it applies to
> numbers after the first, so what makes you think that it
> should not apply to numbers after the first?

Because "Non-alphanumeric tokens that occur between two format tokens are 
separator tokens that are used to join numbers in the list." Because they 
don't occur between two numbers, I don't see "(" and ")" as separator 
tokens. Thus, I think "(" should not apply to numbers after the first, 
because it is not a separator token.

Further reading and thinking indicates to me that no format token can be 
assumed unless two numbers are present. So, in any case where only one 
number is present (regardless of what tokens may precede and follow it), 
the separator has to be a period.

I gather you've come to the same conclusion.

No offense meant, by the way. I see this kind of exchange as thinking out 
loud in the presence of other folks who like to think about these things 
so that we can have a well-reasoned discussion.

Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)

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.