Project

Profile

Help

How to connect?
Download (1.55 KB) Statistics
| Branch: | Tag: | Revision:

he / latest8.9 / bj / net / sf / saxon / number / package.html @ 1afc7e1b

1
<html>
2

    
3
<head>
4
<title>Package overview for net.sf.saxon.number</title>
5
</head>
6

    
7
<body>
8

    
9
<p>This package provides classes associated with numbering and the <code>xsl:number</code> element. </p>
10

    
11
<p>It is possible to extend the range of numberings available by providing a Numberer
12
for a specific language. This should be named Numberer_xx where xx is the language code,
13
corresponding to the value of the lang attribute in <code>xsl:number</code>.</p>
14

    
15
<p>The class <code>Numberer_de</code> is provided as an illustration of how to do this;
16
it is invoked when the stylesheet specifies <code>&lt;xsl:number lang="de"&gt;, and a format
17
token of "eins" is used: it allows numbers up to ten to be output as "eins", "zwei", "drei", etc.</code>
18

    
19
<p>The class <code>Numberer_en</code> provides the standard numbering options. As well as the
20
format tokens defined in the XSLT 1.0 specification (for example, "1", "001", "a", "i") it supports
21
other numbering options including:</p>
22

    
23
<li>
24
<ul>Greek upper and lower case letters</ul>
25
<ul>Cyrillic upper and lower case letters</ul>
26
<ul>Hebrew letters</ul>
27
<ul>Japanese: Hiragana-A, Hiragana-B, Katakana-A, or Katakana-B letters, and Kanji digits</ul>
28
<ul>English words: the format token "one" produces numbers such as "twenty five"</ul>
29
</li>
30

    
31
<p>These classes also include code to support the localization of dates as defined
32
in the XSLT <code>format-dateTime()</code> group of functions.</p>
33

    
34

    
35

    
36
<hr>
37

    
38
<p align="center"><i>Michael H. Kay<br/>
39
Saxonica Limited<br/>
40
9 February 2005</i></p>
41
</body>
42
</html>
(6-6/6)