OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

xslt-conformance message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Definition of Zero Digit in format-number()


Hello again, everyone,

This is the second of the two issues I wanted to raise about format-number().

Attached below is a post to the XSL list following a discussion where I 
claimed there was unsupportive text in the 1.0 Recommendation to allow any 
arbitrary character as a zero digit.

All it says is:

  - zero-digit specifies the character used as the digit zero; the default 
value is the digit zero (0)

Tony brought up that there were a number of zero-digits of differing 
languages that are specified in Unicode, all of which would be meaningful 
in this case.

But does it make sense for an implementation to accept *any* character as a 
zero digit?  Is it therefore assumed subsequent digits are each just one 
position away from the next in the character code table?

I can see there is nothing explicitly disallowing anything, but does that 
implicitly allow anything?  I'm willing to accept the answer is "yes", but 
I really am unsure.

What say you?

.............. Ken


Date: Fri, 1 Dec 2000 08:43:17 -0500
To: xsl-list@mulberrytech.com
From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Subject: Re: zero-digit

At 8:03 PM -0500 11/30/00, G. Ken Holman wrote:
 > Because of the leading paragraph, I never interpreted
 > the attributes to mean anything other than the format
 > pattern ... what indication did you have that these
 > attributes were germane elsewhere?

James Clark just told me that changing the zero digit will indeed change 
the 1 digit, 2 digit, and so on. This is not very well documented in either 
Java or XSLT, but it is indeed the expected behavior. For example, setting 
the zero-digit to A would set

1 to B
2 to C
3 to D
4 to E
5 to F
6 to G
7 to H
8 to I
9 to J


--
G. Ken Holman                      mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.               http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0     +1(613)489-0999   (Fax:-0995)
Web site:     XSL/XML/DSSSL/SGML/OmniMark services, training, products.
Book:   Practical Transformation Using XSLT and XPath ISBN1-894049-05-5
Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html
Next public instructor-led training:             2001-01-27,2001-02-21,
-                            2001-02-27/03-01,2001-03-05/07,2001-03-21,
-                                   2001-04-06/07,2001-05-01,2001-09-19



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC