|
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
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. |
XML Schema Library
The Stylus Studio XML Schema Library provides a detailed reference of many of the world's most commonly used XML vocabularies in an easy-to-read format.
Retail Companies That Use Stylus Studio
Stores and XML data can get very crowded. That's why retail companies use Stylus Studio to simplify their data. With the power of Stylus Studio these top retail companies are at the front of the line when it comes to XML!
XSLT Editor
Stylus Studio's XSLT Editor is the most advanced XSLT development tool on the market. This powerful tool provides backmapping, XSLT transformation preview, debugging, peformance profiling, and more!
Metals, Mining & Crude-Oil Production
It can be very dark and dreary in a mine. That's why metal, mining & crude-oil production are using Stylus Studio as their light when it comes to data integration. See which of these top companies are using Stylus Studio to show them the way to XML!