Steps for Querying a Document

To query a document:
1. Open the document you want to query.
2. In the document window tool bar, click in the query field. This field contains either a prompt to create a new query, or it contains a query you ran previously. For information about how to write a query, see Chapter 9Writing XPath Expressions.

Alternative: Press F6.

3. Press Enter to run the query or click Refresh Query , which is to the left of the query field at the top of the document window.

If a document is part of a Stylus Studio project, Stylus Studio saves the queries you specify. If you save, close, and reopen a document, the queries you already specified are still defined. In the document window, click the down arrow to the right of the query field to display the defined queries.

Stylus Studio assigns a number, beginning with 1, to each query you define. This allows you to run multiple queries against the same document and distinguish one from another.

After you make some modifications to your document, you might want to run a query that you already ran. Display the query in the field in the document tool bar and click Refresh Query.

 
Free Stylus Studio XML Training: