|
Home > Online Product Documentation > Table of Contents > How to Create a Scenario How to Create a ScenarioTo 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.
4. If you are using DataDirect XQuery, specify one or more defined collections as input. See
Specifying XML Input if you need help with this step.
5. In the
Output URL field, optionally type or select the name of the result document you want the XQuery document 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 to XQuery document 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.
9. If you want Stylus Studio to capture performance metrics, enable the XQuery Profiler on the
Profiling Options tab. See
Profiling XQuery Documents.
10. To define another scenario, click
Add and enter the information for that scenario. You can also copy scenarios. See
How to Clone a Scenario.
11. Click
OK.
If you start to create a scenario and then change your mind, click Delete and then OK. |