Trace History View

Usually the XSLT/XQuery processors signal the following events during transformation:

  • - Entering a source (XML) node.
  • - Leaving a source (XML) node.
  • - Entering an XSLT/XQuery node.
  • - Leaving an XSLT/XQuery node.

The Trace History view catches all these events, so you can see how the process evolved. If the view is not displayed, it can be opened from the WindowShow View menu.

The red icon lines denote source nodes while the green icon lines denote XSLT/XQuery nodes. It is possible to save the element trace in a structured XML document. The action is available on the contextual menu of the view. Thus, you have the possibility of comparing the trace results from multiple debug sessions.

Trace History View

The contextual menu contains the following actions:

Go to
Moves the selection in the editor panel to the line containing the XSLT element or XML element that is displayed on the selected line from the view;
Export to XML
Saves the entire trace list into XML format.

Trace History columns

Column Description
Depth Shows you how deep the node is nested in the XML or stylesheet structure. The bigger the number, the more nested the node is. A depth 0 node is the document root.
XML/XSLT/XQuery Node Represents the node from the processed source or stylesheet document. One particular node is the document root, noted as #document. Every node is preceded by an arrow that represents what action was performed on it (entering or leaving the node).
Attributes Attributes of the node (a list of id="value" pairs).
Resource Resource file where the node is located.

Important

Remarks:
  • Clicking a record highlights that node's location inside the resource.
  • Only the Saxon processor shows the element attributes.
  • The Xalan processor shows also the built-in rules.

Was this helpful?