Overview of Scenario Features

This section describes the main features of XQuery scenarios. It covers the following topics:

Specifying XML Source Documents

The main benefit of the XQuery scenario feature is that it lets you specify the XML document against which you want to run your XQuery. By default, Stylus Studio uses the first source document you add using the XQuery mapper as the XML source document for the scenario. You can specify the XML source document setting on the General tab of the Scenario Properties dialog box.

i

Figure 259. XQuery General Scenario Properties

For more information

See Source Documents to learn more about the process of selecting and working with XQuery source documents in XQuery mapper.

Setting Values for External Variables

The Parameter Values tab of the Scenario Properties dialog box displays any external variables you have defined in the XQuery source. You can specify the parameter value you want to use for any external variables when you run the scenario. For example, imagine your XQuery code contains the following:

define variable $unit_cost external
               

            

This variable is displayed on the Parameters tab as follows:

Figure 260. XQuery Scenario Parameters

When you run the scenario, you can specify the parameter value you want to use by double-clicking the Expression field and typing a value. Valid values are XPath expressions and must be entered using single or double quotes.

Performance Metrics Reporting

See Enabling the Profiler to learn more about the different ways in which Stylus Studio can provide you with XQuery performance metrics.

Getting EDI to XML and back to EDI Again: Round Trip Engineering using Stylus Studio URL Adapters

A free online video demonstration shows how to use Stylus Studio's Adapter URL technologies to convert EDI to XML and back again. Convert, validate, view and edit EDIFACT data directly in Stylus Studio.

Switch to Stylus Studio: Customer Testimonials

Read in their own words, why customers have decided to make the switch to Stylus Studio, the World's best XML editor.

XSV - The XML Schema Validator

XSV is the official reference implementation for the XML Schema language and Stylus Studio is the only XML IDE to provide seamless integration with XSV - the W3C XML Schema Validator. Download Stylus Studio and XSV today.

XSL and XSLT Tools

XSLT tools in Stylus Studio let you easily edit, debug, design and profile XSLT stylesheets using a powerful and intuitive graphical user interface.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.