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.

Note

 

If the first document you added to the XQuery is an XML document, Stylus Studio uses that document as the XML source for the scenario and displays it in this field.

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.

XQuery Tools Support for TigerLogic XDMS

Stylus Studio's integration with the TigerLogic XDMS XQuery processor, allowing you to execute advanced XQuery expressions directly against any TigerLogic XDMS instance.

Sun Multi-Schema XML Validator (MSV)

Learn how to integrate the Multi Schema Validator (MSV) into Stylus Studio as one of the Custom Validation Engines. It will work for files with a DTD, a single XSD, or both a DTD and a single XSD.

Oil, Gas & Electric Companies That Use Stylus Studio

Oil, gas & electric companies know a good resource when they see it. That's why they use Stylus Studio as their #1 XML resource. Come see which of these top oil, gas & electric companies are conserving their time and labor with Stylus Studio.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member