Class MessageWarner
java.lang.Object
net.sf.saxon.serialize.Emitter
net.sf.saxon.serialize.XMLEmitter
net.sf.saxon.serialize.MessageWarner
MessageWarner is a user-selectable receiver for XSLT xsl:message output. It causes xsl:message output
to be notified to the warning() method of the JAXP ErrorListener, or to the error() method if
terminate="yes" is specified. This behaviour is specified in recent versions of the JAXP interface
specifications, but it is not the default behaviour, for backwards compatibility reasons.
The text of the message that is sent to the ErrorListener is an XML serialization of the actual message content.
-
Field Summary
FieldsFields inherited from class XMLEmitter
characterReferenceGenerator, declarationIsWritten, elementCode, elementStack, indentForNextAttribute, openStartTag, specialInAtt, specialInText, started, startedElement, undeclareNamespacesFields inherited from class Emitter
allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writerFields inherited from interface Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()End of the document.voidNotify the end of a document nodevoidstartDocument(int properties) Start of a document node.Methods inherited from class XMLEmitter
attribute, characters, closeStartTag, comment, emptyElementTagCloser, endElement, getAttributeIndentString, namespace, open, openDocument, processingInstruction, setCharacterReferenceGenerator, setEscapeNonAscii, setIndentForNextAttribute, startContent, startElement, testCharacters, usesTypeAnnotations, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeEscapeMethods inherited from class Emitter
getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeOutputStream, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter
-
Field Details
-
abort
boolean abort
-
-
Constructor Details
-
MessageWarner
public MessageWarner()
-
-
Method Details
-
startDocument
Description copied from class:XMLEmitterStart of a document node. Nothing is done at this stage: the opening of the output file is deferred until some content is written to it.- Specified by:
startDocumentin interfaceReceiver- Overrides:
startDocumentin classXMLEmitter- Parameters:
properties- bit-significant integer indicating properties of the document node. The definitions of the bits are in classReceiverOptions- Throws:
XPathException- if an error occurs
-
endDocument
Description copied from class:XMLEmitterNotify the end of a document node- Specified by:
endDocumentin interfaceReceiver- Overrides:
endDocumentin classXMLEmitter- Throws:
XPathException- if an error occurs
-
close
public void close()Description copied from class:XMLEmitterEnd of the document.- Specified by:
closein interfaceReceiver- Overrides:
closein classXMLEmitter
-