net.sf.saxon.event
Class NamePoolConverter
public
class
NamePoolConverter
extends ProxyReceiver
This class is a filter that passes all Receiver events through unchanged,
except that it changes namecodes to allow for the source and the destination
using different NamePools. This is necessary when a stylesheet has been constructed
as a general document (e.g. as the result of a transformation) and is passed to
newTemplates() to be compiled as a stylesheet.
Author: Michael Kay
Method Summary |
void | attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
Handle an attribute |
void | namespace(int namespaceCode, int properties)
Handle a namespace |
void | setUnderlyingReceiver(Receiver receiver)
Set the underlying emitter. |
void | startElement(int nameCode, int typeCode, int locationId, int properties)
Output element start tag |
Constructor
public void attribute(int nameCode, int typeCode, CharSequence value, int locationId, int properties)
Handle an attribute
public void namespace(int namespaceCode, int properties)
Handle a namespace
public void setUnderlyingReceiver(
Receiver receiver)
Set the underlying emitter. This call is mandatory before using the Emitter.
This version is modified from that of the parent class to avoid setting the namePool
of the destination Receiver.
public void startElement(int nameCode, int typeCode, int locationId, int properties)
Output element start tag