|
|
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 toolbar, 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
Source XML URL (optional): field, type the name of the XML file to which you want to apply the XQuery, or click
Browse
4. 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.
5. If you want Stylus Studio to
Store paths relative to XQuery document path, ensure that this option is checked.
6. 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.
7. 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.
8. If you want Stylus Studio to capture performance metrics, enable the XQuery Profiler on the
Profiling Options tab. See
Profiling XQuery Documents.
9. To define another scenario, click
Add and enter the information for that scenario. You can also copy scenarios. See
How to Clone a Scenario.
10. Click
OK.
If you start to create a scenario and then change your mind, click Delete and then OK. |
XML Parser
An XML Parser is a parser that is designed to read XML and create a way for programs to use XML. Learn about Stylus Studio's comprehensive support for all of the world's leading XML Parsers.
XML-to-HTML Mapper
Stylus Studio simplifies XML-to-HTML mapping through the industry's first and only XML to HTML mapping tool based on industry standard XSLT.
XQuery Mapper
Stylus Studio has the industry's only XQuery mapper, enabling you to develop sophisticated XML mappings consisting of queries and data transformation in an intuitive, visual manner.
Validate XML Using XSD
You can validate XML documents against any data model defined using W3C XSD, using any major XSD Validator, including MSXML 3.0, MSXML 4.0, MSXML 6.0, Xerces-J, Xerces-C, Microsoft System.XML (1.0 and 2.0), XSV, the Saxonica XSD Validator and others.


