| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
<html> |
| 9 |
|
| 10 |
<head> |
| 11 |
<title>Package overview for net.sf.saxon.number</title> |
| 12 |
</head> |
| 13 |
|
| 14 |
<body> |
| 15 |
|
| 16 |
<p>This package provides classes associated with numbering and the <code>xsl:number</code> instruction. </p> |
| 17 |
|
| 18 |
<p>It is possible to extend the range of numberings available by providing a Numberer |
| 19 |
for a specific language. This must be registered with the <code>Configuration</code>. |
| 20 |
In earlier releases, there was a fixed relationship between the language and the |
| 21 |
implementing class (the Numberer was always named Numberer_xx where xx is the language code, |
| 22 |
corresponding to the value of the lang attribute in <code>xsl:number</code>). From Saxon 9.2, |
| 23 |
this relationship no longer exists.</p> |
| 24 |
|
| 25 |
<p>These classes also include code to support the localization of dates as defined |
| 26 |
in the XSLT <code>format-dateTime()</code> group of functions.</p> |
| 27 |
|
| 28 |
<p>The class <code>Numberer_en</code> provides the standard numbering options. As well as the |
| 29 |
format tokens defined in the XSLT 1.0 specification (for example, "1", "001", "a", "i") it supports |
| 30 |
other numbering options including:</p> |
| 31 |
|
| 32 |
<li> |
| 33 |
<ul>Greek upper and lower case letters</ul> |
| 34 |
<ul>Cyrillic upper and lower case letters</ul> |
| 35 |
<ul>Hebrew letters</ul> |
| 36 |
<ul>Japanese: Hiragana-A, Hiragana-B, Katakana-A, or Katakana-B letters, and Kanji digits</ul> |
| 37 |
<ul>English words: the format token "one" produces numbers such as "twenty five"</ul> |
| 38 |
</li> |
| 39 |
|
| 40 |
<p>Localizations for a number of European languages are provided in package <code>net.sf.saxon.option.local</code>. |
| 41 |
In Saxon-PE and Saxon-EE these are issued in binary form as part of the Saxon JAR. For Saxon-HE, they are |
| 42 |
issued only in source code form.</p> |
| 43 |
|
| 44 |
|
| 45 |
</body> |
| 46 |
</html> |