public class MessageEmitter extends XMLEmitter
xsl:message instruction. These changes can be overridden
in a user-supplied subclass.attSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, DOCTYPE, elementCode, elementStack, indentForNextAttribute, internalSubset, openStartTag, RIGHT_ANGLE_NEWLINE, specialInAtt, specialInAttSingle, specialInText, started, startedElement, undeclareNamespaces, unfailingallCharactersEncodable, characterSet, outputProperties, writerpipelineConfiguration, previousAtomic, systemId| Constructor and Description |
|---|
MessageEmitter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
End of the document.
|
void |
endDocument()
Notify the end of a document node
|
void |
processingInstruction(java.lang.String target,
UnicodeString data,
Location locationId,
int properties)
Handle a processing instruction.
|
void |
setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Set the pipeline configuration
|
void |
setWriter(java.io.Writer writer) |
protected boolean |
suppressProcessingInstruction(java.lang.String target,
UnicodeString data,
Location locationId,
int properties)
Method to decide whether a processing instruction in the message should be suppressed.
|
characters, closeStartTag, comment, convertToAscii, endElement, isStarted, namespace, open, openDocument, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeAttributeIndentString, writeCodePoint, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEmptyElementTagCloser, writeEscapeappend, getOutputProperties, setMustClose, setOutputProperties, setUnicodeWriter, setUnparsedEntityappend, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setSystemIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, getPipelineConfiguration, handlesAppendpublic void setWriter(java.io.Writer writer)
public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
ReceiversetPipelineConfiguration in interface ReceiversetPipelineConfiguration in class SequenceReceiverpipelineConfiguration - the pipeline configurationpublic void processingInstruction(java.lang.String target,
UnicodeString data,
Location locationId,
int properties)
throws XPathException
XMLEmitterprocessingInstruction in interface ReceiverprocessingInstruction in class XMLEmittertarget - The PI name. This must be a legal name (it will not be checked).data - The data portion of the processing instructionlocationId - provides information such as line number and system ID.properties - Additional information about the PI.XPathException - if an error occursprotected boolean suppressProcessingInstruction(java.lang.String target,
UnicodeString data,
Location locationId,
int properties)
target - the processing instruction target (that is, name)data - the data part of the processing instructionlocationId - the location, which in the case of the error-code processing instruction, holds
the location of the originating xsl:message instructionproperties - currently 0.public void endDocument()
throws XPathException
XMLEmitterendDocument in interface ReceiverendDocument in class XMLEmitterXPathException - if an error occurspublic void close()
throws XPathException
XMLEmitterclose in interface Receiverclose in class XMLEmitterXPathException - if an error occursCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.