Saxon extension to count the lines in a result tree fragment.
$Id: LineCountEmitter.java,v 1.1 2006/05/31 17:21:21 mbatchelor Exp $
Copyright (C) 2000 Norman Walsh.
This class provides a
Saxon 6.*
implementation to count the number of lines in a result tree
fragment.
The general design is this: the stylesheets construct a result tree
fragment for some verbatim environment. That result tree fragment
is "replayed" through the LineCountEmitter; the LineCountEmitter watches
characters go by and counts the number of line feeds that it sees.
That number is then returned.
Change Log:
- 1.0
Initial release.
See Also: Verbatim author: Norman Walsh author: ndw@nwalsh.com version: $Id: LineCountEmitter.java,v 1.1 2006/05/31 17:21:21 mbatchelor Exp $ |