Interface TraceListener2

All Superinterfaces:
EventListener, TraceListener
All Known Implementing Classes:
AbstractTraceListener, ModeTraceListener, XQueryTraceListener, XSLTTraceListener

public interface TraceListener2 extends TraceListener
This interface defines methods that are called by Saxon during the execution of a stylesheet, if tracing is switched on. Tracing can be switched on by nominating an implementation of this class using the TRACE_LISTENER feature of the TransformerFactory, or using the addTraceListener() method of the Controller, which is Saxon's implementation of the JAXP javax.xml.transform.Transformer interface.
Since:
9.7. The TraceListener2 interface extends the TraceListener interface, which is retained for compatibility.
  • Method Details

    • startRuleSearch

      void startRuleSearch()
      Method called when a search for a template rule is about to start
    • endRuleSearch

      void endRuleSearch(Object rule, Mode mode, Item item)
      Method called when a rule search has completed.
      Parameters:
      rule - the rule (or possible built-in ruleset) that has been selected
      mode - the mode in operation
      item - the item that was checked against