How to Create a Scenario

To create a scenario:
1. In the XQuery editor tool bar, click .

Alternative: Select Create Scenario from the scenario drop-down list at the top of the editor window.

Stylus Studio displays the Scenario Properties dialog box.

2. In the Scenario name: field, type the name of the new scenario.
3. In the Main input: field, type the name of the XML file to which you want to apply the XQuery, or click Browse to navigate to an XML file and select it.

5. In the Output URL field, optionally type or select the name of the result document you want the XQuery to generate. If you specify the name of a file that does not exist, Stylus Studio creates it when you preview the XQuery.
6. If you want Stylus Studio to store paths relative tothe XQuery path, ensure that the Use relative paths option is checked.
7. If you check Preview result in an external application, Stylus Studio displays the result Internet Explorer. In addition, Stylus Studio always displays XQuery results in the Preview window.
8. If you want to specify values for XQuery parameters, click the Parameter Values tab. Click the Variable Name field for the parameter - Stylus Studio places the text cursor in the Expression field, allowing you to type a value for the parameter.
11. Click OK.

If you start to create a scenario and then change your mind, click Delete and then OK.

Free Stylus Studio XML Training:
W3C Member