DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6976>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6976

number format for other locale is wrong

           Summary: number format for other locale is wrong
           Product: XalanJ2
           Version: 2.3Dx
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: org.apache.xalan.templates
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The number format for other locale is wrong,
Here take simplified chinese as a example:

1.
<xsl:number value="101" format="&#x4E00;"> 

"U+4E00" which is chinse's number one which inlcude in
org/apache/xml/utils/res/XResources_zh_CN.java,

So according chinse's usage, should get fellow character sequence(express with
unicdoe, pronunciation "yi bai ning yi" by chinese):
U+4E00 U+767E U+96F6 U+4E00

2. the format "a" and "A" also have same meaning in chinese as it's in english.
So if using fellow:
<xsl:number value="2" format="a">
should get the same as C locale: b

A format token A also should generates the sequence A B ... Z AA AB ...
format token a should generates the sequence a b ... z aa ab ...

3.the format U+FF21 ( which is same as "A" in english, just it's fullwidth and
english one's is halfwidth),

<xsl:number format="&#xFF21">

So format token U+FF21 should generate the sequence U+FF21 U+FF22 U+FF23 ...
U+FF3A U+FF21U+FF21 U+FF21U+FF22 ...
And format token U+FF41 (in english is "a") should generate the sequence U+FF41
U+FF42 ...U+FF5A U+FF41U+FF41 U+FF41U+FF42...

Reply via email to