org.apache.xalan.trace

Class TracerEvent

public class TracerEvent extends Object implements EventListener

Parent class of events generated for tracing the progress of the XSL processor.

UNKNOWN: advanced

Field Summary
QNamem_mode
The current mode.
TransformerImplm_processor
The XSLT processor instance.
Nodem_sourceNode
The current context node.
ElemTemplateElementm_styleNode
The node in the style tree where the event occurs.
Constructor Summary
TracerEvent(TransformerImpl processor, Node sourceNode, QName mode, ElemTemplateElement styleNode)
Create an event originating at the given node of the style tree.
Method Summary
static StringprintNode(Node n)
Returns a string representation of the node.
static StringprintNodeList(NodeList l)
Returns a string representation of the node list.

Field Detail

m_mode

public final QName m_mode
The current mode.

m_processor

public final TransformerImpl m_processor
The XSLT processor instance.

m_sourceNode

public final Node m_sourceNode
The current context node.

m_styleNode

public final ElemTemplateElement m_styleNode
The node in the style tree where the event occurs.

Constructor Detail

TracerEvent

public TracerEvent(TransformerImpl processor, Node sourceNode, QName mode, ElemTemplateElement styleNode)
Create an event originating at the given node of the style tree.

Parameters: processor The XSLT TransformerFactory. sourceNode The current context node. mode The current mode. styleNode The stylesheet element that is executing.

Method Detail

printNode

public static String printNode(Node n)
Returns a string representation of the node. The string returned for elements will contain the element name and any attributes enclosed in angle brackets. The string returned for attributes will be of form, "name=value."

Parameters: n any DOM node. Must not be null.

Returns: a string representation of the given node.

printNodeList

public static String printNodeList(NodeList l)
Returns a string representation of the node list. The string will contain the list of nodes inside square braces. Elements will contain the element name and any attributes enclosed in angle brackets. Attributes will be of form, "name=value."

Parameters: l any DOM node list. Must not be null.

Returns: a string representation of the given node list.

Copyright B) 2006 Apache XML Project. All Rights Reserved.