Package net.sf.saxon.event
Class LocationCopier
- java.lang.Object
-
- net.sf.saxon.event.LocationCopier
-
- All Implemented Interfaces:
CopyInformee
public class LocationCopier extends java.lang.Object implements CopyInformee
A Receiver that can be inserted into an event pipeline to copy location information. 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.Note: prior to 9.2, the LocationCopier was a ProxyReceiver that passed all events on the pipeline unchanged. It no longer does this, instead it is found as the LocationProvider on a pipeline, but does not itself see the pipeline events.
-
-
Constructor Summary
Constructors Constructor Description LocationCopier(boolean wholeDocument, java.lang.String systemId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getSystemId()
Location
notifyElementNode(NodeInfo element)
Provide information about the node being copied.
-
-
-
Method Detail
-
notifyElementNode
public Location notifyElementNode(NodeInfo element)
Provide information about the node being copied. This method is called immediately before the startElement call for the element node in question.- Specified by:
notifyElementNode
in interfaceCopyInformee
- Parameters:
element
- the node being copied, which must be an element node- Returns:
- information about this node
-
getSystemId
public java.lang.String getSystemId()
-
-