|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.icl.saxon.output.Emitter
com.nwalsh.saxon.CopyEmitter
com.nwalsh.saxon.ColumnUpdateEmitter
Saxon extension to scan the column widthsin a result tree fragment.
$Id: ColumnUpdateEmitter.java,v 1.1 2001/07/16 21:23:57 nwalsh Exp $
Copyright (C) 2000 Norman Walsh.
This class provides a Saxon 6.* implementation to scan the column widths in a result tree fragment.
The general design is this: the stylesheets construct a result tree fragment for some colgroup environment. That result tree fragment is "replayed" through the ColumnUpdateEmitter; the ColumnUpdateEmitter watches the cols go by and extracts the column widths that it sees. These widths are then made available.
Change Log:
Initial release.
Field Summary | |
protected static String |
foURI
The FO namespace name. |
protected NamePool |
namePool
|
protected int |
numColumns
The number of columns seen. |
protected String[] |
width
|
Fields inherited from class com.nwalsh.saxon.CopyEmitter |
rtf, rtfEmitter |
Fields inherited from class com.icl.saxon.output.Emitter |
locator, outputProperties, outputStream, systemId, writer |
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Constructor Summary | |
ColumnUpdateEmitter(Controller controller,
NamePool namePool,
String[] width)
Construct a new ColumnUpdateEmitter. |
Method Summary | |
void |
startElement(int nameCode,
Attributes attributes,
int[] namespaces,
int nscount)
Examine for column info. |
Methods inherited from class com.nwalsh.saxon.CopyEmitter |
characters, comment, endDocument, endElement, getResultTreeFragment, processingInstruction, setDocumentLocator, setEscaping, setNamePool, setUnparsedEntity, setWriter, startDocument |
Methods inherited from class com.icl.saxon.output.Emitter |
getNamePool, getOutputProperties, getOutputStream, getSystemId, getWriter, makeEmitter, setOutputProperties, setOutputStream, setSystemId, usesWriter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int numColumns
protected String[] width
protected NamePool namePool
protected static String foURI
Constructor Detail |
public ColumnUpdateEmitter(Controller controller, NamePool namePool, String[] width)
Method Detail |
public void startElement(int nameCode, Attributes attributes, int[] namespaces, int nscount) throws TransformerException
startElement
in class CopyEmitter
TransformerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |