Displaying Query Results

How Stylus Studio displays the result of a query depends on the type of result.

  • If the XPath processor returns a Boolean, numeric, or string value, Stylus Studio displays the value in the Query Output window.
  • If the XPath processor returns a collection of nodes, Stylus Studio displays the nodes in a DOM tree structure in the Query Output window to the right of the main XML editor pane. The number of Hits is the number of top-level nodes the query returned. You can expand and collapse the elements as needed. If you click a node in the result, then in the XML document window Stylus Studio moves the focus to the source node for the result node you clicked.

A tab at the bottom of the Query Output window displays the number that Stylus Studio assigned to your query. After you run multiple queries on the same document, there is a tab for each query that you run. This allows you to view the results of the different queries as needed.

 
Free Stylus Studio XML Training: