net.sf.saxon.event

Class MessageWarner

Implemented Interfaces:
Result, Receiver

public class MessageWarner
extends XMLEmitter

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

Fields inherited from class net.sf.saxon.event.XMLEmitter

declarationIsWritten, elementCode, elementStack, empty, openStartTag, preferHex, undeclareNamespaces

Fields inherited from class net.sf.saxon.event.Emitter

allCharactersEncodable, characterSet, namePool, outputProperties, outputStream, pipelineConfig, streamResult, systemId, writer

Method Summary

void
endDocument()
void
startDocument(int properties)

Methods inherited from class net.sf.saxon.event.XMLEmitter

attribute, characters, close, closeStartTag, comment, emptyElementTagCloser, endDocument, endElement, namespace, open, openDocument, outputCharacterReference, processingInstruction, startContent, startDocument, startElement, testCharacters, writeAttribute, writeCharSequence, writeDeclaration, writeDocType, writeEscape

Methods inherited from class net.sf.saxon.event.Emitter

getConfiguration, getOutputProperties, getOutputStream, getPipelineConfiguration, getSystemId, getWriter, makeWriter, setOutputProperties, setOutputStream, setPipelineConfiguration, setStreamResult, setSystemId, setUnparsedEntity, setWriter, usesWriter

Method Details

endDocument

public void endDocument()
            throws XPathException
Specified by:
endDocument in interface Receiver
Overrides:
endDocument in interface XMLEmitter

startDocument

public void startDocument(int properties)
            throws XPathException
Specified by:
startDocument in interface Receiver
Overrides:
startDocument in interface XMLEmitter