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.

Scientific, Photo & Control Equipment

Scientific, photo & control equipment companies hear clicks and beeps all day. But, when it comes to data integration it needs to be done in a flash, that's why they use Stylus Studio. Come see which top companies are seeing XML in a brand new light!

Microsoft XML Tools

Build Microsoft XML applications with Stylus Studio, which includes development support for all Microsoft XML technologies, including MSXML and Microsoft System.XML (Microsoft XML Parsers), SQL Server 2000, SQL Server 2005 (Yukon), and more.

Web Service Data Mapping

Stylus Studio makes it possible for you to use Web services as live XML data sources for XML mapping projects.

Generating Java Code with Stylus Studio

This is a video tutorial on how to generate Java Code with Stylus Studio

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member