Binding External XQuery Resources to Inline XQueries
You can bind XQuery resources to inline XQuery expressions, so they will be executed inline as part of an action.
Before you begin
These instructions assume you are creating or editing an expression in the XQuery Expression Editor, XQuery Condition Editor, or XPath Expression Editor, as described in
Creating and Editing Inline XQuery and XPath Expressions.
To bind an XQuery Resource to an inline expression:
- Click Variable Structures.
- In the workspace (under the button bar), select XQuery Resources.
- In the 1. Select an XQuery resource to execute box, click Browse.
- In the XQuery Browser, select the radio button associated with the XQuery you want to use, then click Submit.
- In the 2. Bind Variables box, define the input parameters for the transformation. For each variable listed under Variable Name enter an XQuery expression to be mapped to it. You must define a mapping for each parameter. For example, if an XQuery transformation has two input parameters named one and two, the Variable Name field has two labels-one and two. A text box, into which the XQuery expression is entered, is associated with each label.
The following XQuery expressions are examples of valid input to this field:
$body/*[1]
$body/po:PurchaseOrder
Note: |
The following variable name is not a valid entry for this field and results in an exception:
body |
- After you finish, continue with any of the following tasks.
- Click Validate. A message is displayed if the expression is validated successfully.
- Click Test. See
Performing XQuery Testing.
- Save or discard your changes.