RE: [XSLT2.0] Adding lang attribute to decimal-format

Agree. Not that important (but seems to be good).


Igor Hersht
XSLT Development
IBM Canada Ltd., 8200 Warden Avenue, Markham, Ontario L6G 1C7
Office D2-260, Phone (905)413-3240 ; FAX  (905)413-4839


                                                                                                      
                      "Kay, Michael"                                                                  
                      <Michael.Kay@soft        To:       Igor Hersht/Toronto/IBM@IBMCA,               
                      wareag.com>               <public-qt-comments@w3.org>                           
                                               cc:                                                    
                      01/13/2004 02:47         Subject:  RE: [XSLT2.0] Adding lang attribute to       
                      PM                        decimal-format                                        
                                                                                                      
                                                                                                      
                                                                                                      



>
> SUGGESTION 3:
> 16.4.1 Defining a Decimal Format
>
> Add attribute lang? = { nmtoken }.
> The rules for the attributes are the same as for
> this attributes in other elements (e.g. xsl:number).
> lang attribute should control default values for attributes:
> decimal-separator, grouping-separator, infinity minus-sign,
> NaN, percent, per-mille, zero-digit. (e.g. text
> "decimal-separator specifies the character used for the
> decimal-separator-sign; the default value is the period
> character (.)" should be replaced with decimal-separator
> specifies the character used for the decimal-separator-sign;
> the default value is default for a given language".
>

A personal response: I think this is of marginal benefit. I don't think
it's difficult for users to specify exactly what formatting they want,
and it gives better interoperability if they do so: how likely is it
that different processors will choose the same representation for "NaN"
in Italian?

Michael Kay

Received on Tuesday, 13 January 2004 15:35:56 UTC