This class provides the guts of a
Saxon 6.*
implementation of line numbering for verbatim environments. (It is used
by the Verbatim class.)
The general design is this: the stylesheets construct a result tree
fragment for some verbatim environment. The Verbatim class initializes
a NumberLinesEmitter with information about what lines should be
numbered and how. Then the result tree fragment
is "replayed" through the NumberLinesEmitter; the NumberLinesEmitter
builds a
new result tree fragment from this event stream, decorated with line
numbers,
and that is returned.
NumberLinesEmitter(com.icl.saxon.om.NamePool namePool,
int modulus,
int width,
java.lang.String separator,
boolean foStylesheet)
Constructor for the NumberLinesEmitter.
Method Summary
void
characters(char[] chars,
int start,
int len)
Process characters.
void
endElement(int nameCode)
Process end element events.
void
int[] namespaces,
int nscount)
Process start element events.
Methods inherited from class com.nwalsh.saxon6.CopyEmitter