com.icl.saxon.number

Class Numberer_de

public class Numberer_de extends Numberer_en

Class Numberer_de is designed simply to demonstrate how to write a number formatter for a different language. This one will be activated for language="de", format="eins", letter-value="traditional"

Version: 18 November 1999

Author: Michael H. Kay

Method Summary
Stringformat(int number, String picture, int groupSize, String groupSeparator, String letterValue)
Format a number into a string

Method Detail

format

public String format(int number, String picture, int groupSize, String groupSeparator, String letterValue)
Format a number into a string

Parameters: number The number to be formatted picture The format specification. This is a single component of the format attribute of xsl:number, e.g. "1", "01", "i", or "a" groupSize number of digits per group (0 implies no grouping) groupSeparator string to appear between groups of digits letterValue as defined in xsl:number ("alphabetic" or "traditional" or "")

Returns: the formatted number