Saxon.Api

 

 

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