public class MessageEmitter extends XMLEmitter
xsl:message
instruction. These changes can be overridden
in a user-supplied subclass.attSpecials, canonical, characterReferenceGenerator, declarationIsWritten, delimiter, elementCode, elementStack, indentForNextAttribute, openStartTag, started, startedElement, undeclareNamespaces, unfailing
allCharactersEncodable, characterSet, outputProperties, outputStream, streamResult, writer
pipelineConfiguration, 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,
java.lang.CharSequence data,
Location locationId,
int properties)
Handle a processing instruction.
|
void |
setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Set the pipeline configuration
|
protected boolean |
suppressProcessingInstruction(java.lang.String target,
java.lang.CharSequence data,
Location locationId,
int properties)
Method to decide whether a processing instruction in the message should be suppressed.
|
attribute, characters, closeStartTag, comment, convertToAscii, emptyElementTagCloser, endElement, getAttributeIndentString, isStarted, namespace, open, openDocument, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startDocument, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeDocTypeWithNullSystemId, writeEscape
append, getOutputProperties, getOutputStream, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setStreamResult, setUnparsedEntity, setWriter, usesWriter
append, decompose, flatten, getConfiguration, getErrorCodeForDecomposingFunctionItems, getNamePool, getPipelineConfiguration, getSystemId, handlesAppend, setSystemId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
append, getPipelineConfiguration, handlesAppend, setSystemId
public void setPipelineConfiguration(PipelineConfiguration pipelineConfiguration)
Receiver
setPipelineConfiguration
in interface Receiver
setPipelineConfiguration
in class SequenceReceiver
pipelineConfiguration
- the pipeline configurationpublic void processingInstruction(java.lang.String target, java.lang.CharSequence data, Location locationId, int properties) throws XPathException
XMLEmitter
processingInstruction
in interface Receiver
processingInstruction
in class XMLEmitter
target
- 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, java.lang.CharSequence 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
XMLEmitter
endDocument
in interface Receiver
endDocument
in class XMLEmitter
XPathException
- if an error occurspublic void close() throws XPathException
XMLEmitter
close
in interface Receiver
close
in class XMLEmitter
XPathException
- if an error occursCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.