net.sf.saxon.event
Class LocationCopier
public
class
LocationCopier
extends ProxyReceiver
implements LocationProvider
A Receiver that can be inserted into an event pipeline to copy location information.
The class acts as a LocationProvider, so it supports getSystemId() and getLineNumber() methods;
the location returned can vary for each node, and is set by the class generating the events.
The class is used when it is necessary to copy a subtree along with its location information;
for example, when copying an inline schema within a stylesheet to a separate schema document.
public int lineNumber
public int getColumnNumber()
public int getLineNumber()
public int getLineNumber(int locationId)
public String getPublicId()
public String getSystemId(int locationId)
public void setLineNumber(int lineNumber)