| com.nwalsh.saxon.CopyEmitter com.nwalsh.saxon.UnwrapLinksEmitter
UnwrapLinksEmitter | public class UnwrapLinksEmitter extends CopyEmitter (Code) | | Saxon extension to unwrap links in a result tree fragment.
$Id: UnwrapLinksEmitter.java,v 1.1 2006/05/31 17:21:20 mbatchelor Exp $
Copyright (C) 2000, 2002 Norman Walsh.
This class provides the guts of a
Saxon 6.*
implementation of a link unwrapper.
The general design is this: the stylesheets construct a result tree
fragment for some environment. Then the result tree fragment
is "replayed" through the UnwrapLinksEmitter; the UnwrapLinksEmitter
builds a
new result tree fragment from this event stream with top-level links unwrapped.
That RTF is returned. Note that only a single level of unwrapping
is performed. This is clearly a crude implementation.
Change Log:
- 1.0
Initial release.
author: Norman Walsh author: ndw@nwalsh.com version: $Id: UnwrapLinksEmitter.java,v 1.1 2006/05/31 17:21:20 mbatchelor Exp $ |
Constructor Summary | |
public | UnwrapLinksEmitter(Controller controller, NamePool namePool, boolean foStylesheet) |
elementStack | protected Stack elementStack(Code) | | A stack for the preserving information about open elements.
|
foStylesheet | protected boolean foStylesheet(Code) | | Is the stylesheet currently running an FO stylesheet?
|
foURI | protected static String foURI(Code) | | The FO namespace name.
|
htmlAFingerprint | protected int htmlAFingerprint(Code) | | |
inSkip | protected boolean inSkip(Code) | | |
linkDepth | protected int linkDepth(Code) | | Are we currently in a link? How deep?
|
skipDepth | protected int skipDepth(Code) | | |
tryAgain | protected boolean tryAgain(Code) | | |
xhURI | protected static String xhURI(Code) | | The XHTML namespace name.
|
xhtmlAFingerprint | protected int xhtmlAFingerprint(Code) | | |
UnwrapLinksEmitter | public UnwrapLinksEmitter(Controller controller, NamePool namePool, boolean foStylesheet)(Code) | | Constructor for the UnwrapLinksEmitter.
Parameters: namePool - The name pool to use for constructing elements and attributes. Parameters: foStylesheet - Is this an FO stylesheet? |
|
|