### Saxon.Api

- BinaryResource
- CatalogCollection
- DirectoryCollection
- DocumentBuilder
- DomDestination
- DynamicContext
- DynamicError
- EmptyEnumerator<T>
- ErrorReporter
- ErrorReporterToStaticError
- ErrorReporterWrapper
- ExtensionFunction
- ExtensionFunctionCall
- ExtensionFunctionDefinition
- Feature<T>
- FeatureKeys
- HostLanguage
- ICollectionFinder
- IErrorReporter
- IInvalidityHandler
- IMessageListener
- IMessageListener2
- InvalidityHandlerWrapper
- IPredicate<in XdmItem>
- IQueryResolver
- IResource
- IResourceCollection
- IResourceFactory
- IResultDocumentHandler
- IXmlLocation
- JarCollection
- NamespaceConstant
- NullDestination
- Predicate<T>
- Predicates
- Processor
- QName
- RawDestination
- RecoveryPolicy
- Resource
- ResourceCollection
- SchemaManager
- SchemaResolver
- SchemaValidationMode
- SchemaValidator
- Serializer
- StandardCollectionFinder
- StandardLogger
- StaticContext
- StaticError
- Step<TInput, TResult>
- Steps
- TextWriterDestination
- TreeModel
- URIQueryParameters
- ValidationFailure
- WhitespacePolicy
- XdmAnyArrayType
- XdmAnyFunctionType
- XdmAnyItemType
- XdmAnyMapType
- XdmAnyNodeType
- XdmArray
- XdmAtomicType
- XdmAtomicValue
- XdmAxis
- XdmDestination
  - - TreeProtector
- XdmEmptySequence
- XdmExternalObjectValue
- XdmFunctionItem
- XdmItem
- XdmItemType
- XdmMap
- XdmNode
- XdmNodeKind
- XdmSequenceType
- XdmValue
- XmlDestination
- XmlProcessingError
- XmlResource
- XPathCompiler
- XPathExecutable
- XPathSelector
- XQueryCompiler
- XQueryEvaluator
- XQueryExecutable
- Xslt30Transformer
- XsltCompiler
- XsltExecutable
  - - ParameterDetails
- XsltPackage
- XsltTransformer

### Saxon.Api

# Interface IMessageListener

public interface IMessageListener

An `IMessageListener` can be nominated to handle output produced by the `xsl:message` instruction in an XSLT stylesheet.

This interface affects any `xsl:message` instruction executed by the stylesheet.

If no `IMessageListener` is nominated (in the `MessageListener` property of the `XsltTransformer`), the output of `xsl:message` is serialized, and is written to standard error output stream.

If an `IMessageListener` is nominated, however, its `Message` method will be called whenever an `xsl:message` instruction is evaluated.

### Method Summary
void | Message(XdmNode content, bool terminate, IXmlLocation location) Handle the output of an `xsl:message` instruction in the stylesheet

## Method Detail

### Message

public void Message(XdmNode content,
bool terminate,
IXmlLocation location)

Handle the output of an `xsl:message` instruction in the stylesheet

Parameters:

`content` - a document node representing the message content. Note the putput of `xsl:message` is always an XML document node. It can be flattened to obtain the stringvalue if required by calling `GetStringValue()`
`terminate` - Set to true if `terminate ='yes'` was specified or to false otherwise
`location` - an object that contains the location of the `xsl:message` This provides access to the URI of the stylesheet module and the line number of the `xsl:message`