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:

declare variable $part_num external
               

            

This variable is displayed on the Parameters tab as follows:

Figure 345. 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.

 
Free Stylus Studio XML Training:
W3C Member