The XQuery Debugger perspective () resembles the XSLT Debugger
perspective. You can use it to detect problems in an XQuery transformation process by
executing the process step by step in a controlled environment and inspecting the information
provided in the special views.
The workspace is organized as follows:
- Source document view - allows editing of data or document-oriented XML files
(documents).
- XQuery document view - allows editing of XQuery files.
- Output document view - displays the transformed output
that results from the input of a selected document (XML) and selected XQuery document to
the XQuery transformer. The result of transformation is dynamically written as the
transformation is processed. There are two types of views for the output: a text view
(with XML syntax highlight) and an XHTML view.
- Control toolbar - contains all actions you need for configuring and controlling the
debug process.
- Information views - distributed in two panes they are displaying various types of
information that can be used to understand the transformation process. For each
information type there is a corresponding tab. While running a transformation, relevant
events are displayed in the various information views.
You are able to add XPath expression automatically in the
XWatch
view using the
Watch expression action from the contextual menu.
In case you select an expression or a fragment of it and then click
Watch
expression in the contextual menu, the entire selection is presented in
the
XWatch view.
Note: Expressions displayed in the
XWatch view are normalized (unnecessary white spaces are
removed from the expression).
To watch our video demonstration about the XQuery debugging capabilities in Oxygen XML Editor, go to http://www.oxygenxml.com/demo/XQuery_Debugger.html.