This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: number format test
Kay Michael <Michael.Kay@icl.com> wrote:
>> 5. Saxon
>> - Fullwidth 1 (#xff11) are supported.
>> - Hiragana/Katakana/Kanji format generates incorrect result.
>> (Unicode codepoint order, such as #x3042, #x3043, #x3044,...)
>> useless and trouble with Non-European style processing.
>> fix it please!!
>
>If you could tell me what the correct sequence is, I'll be happy to include
>it. Help me please!
XSLT 1.0 spec says:
7.7.1 Number to String Conversion Attributes
...
- Any other format token indicates a numbering sequence that starts
with that token. If an implementation does not support a numbering
sequence that starts with that token, it must use a format token of 1.
The last sentence is important. ...it must use a format token of 1.
If Saxon will support... the following are Japanese Hiragana/Katakana sequences
-- modern(A...) and traditional(I...) -- and Kanji(CJK ideographs) numbers.
format="あ" (Hiragana A)
あいうえおかきくけこ
さしすせそたちつてと
なにぬねのはひふへほ
まみむめもやゆよらり
るれろわをん
format="ア" (Katakana A)
アイウエオカキクケコ
サシスセソタチツテト
ナニヌネノハヒフヘホ
マミムメモヤユヨラリ
ルレロワヲン
format="い" (Hiragana I)
いろはにほへとちりぬ
るをわかよたれそつね
ならむうゐのおくやま
けふこえてあさきゆめ
みしゑひもせす
format="イ" (Katakana I)
イロハニホヘトチリヌ
ルヲワカヨタレソツネ
ナラムウヰノオクヤマ
ケフコエテアサキユメ
ミシヱヒモセス
format="一" (Kanji 1) (decimal notation)
一(=1) 二(=2) 三(=3) 四(=4) 五(=5)
六(=6) 七(=7) 八(=8) 九(=9) 〇(=0)
e.g. 一〇(=10) 二五六(=256)
There are more ideographic(kanji)-number formats, but the above will be sufficient.
Thanks,
MURAKAMI Shinyu
murakami@nadita.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list