XML Transformation with XQuery
Use the XML transformation with XQuery scenario to apply a transformation in which an XQuery file queries an XML file for the output results.
To create an XML transformation with XQuery scenario, use one of the following methods:
- Use the  Configure Transformation
                     Scenario(s) (Ctrl + Shift
                        + C (Command + Shift + C on OS X)) action from the
                  toolbar or the  menu. Then click the New button and select
                  XML transformation with XQuery. Configure Transformation
                     Scenario(s) (Ctrl + Shift
                        + C (Command + Shift + C on OS X)) action from the
                  toolbar or the  menu. Then click the New button and select
                  XML transformation with XQuery.
- Use the  Apply Transformation
                     Scenario(s) (Ctrl + Shift
                        + T (Command + Shift + T on OS X)) action from the
                  toolbar or the  menu. Then click the New button and select
                  XML transformation with XQuery. Apply Transformation
                     Scenario(s) (Ctrl + Shift
                        + T (Command + Shift + T on OS X)) action from the
                  toolbar or the  menu. Then click the New button and select
                  XML transformation with XQuery.NoteIf a scenario is already associated with the edited document, selecting Apply Transformation
                           Scenario(s) runs the associated scenario automatically. You can check to see
                        if transformation scenarios are associated with the edited document by hovering your
                        cursor
                        over the Apply Transformation
                           Scenario(s) runs the associated scenario automatically. You can check to see
                        if transformation scenarios are associated with the edited document by hovering your
                        cursor
                        over the Apply Transformation
                           Scenario button. Apply Transformation
                           Scenario button.
- Go to  and select  Transformation Scenarios to display this view. Click the
                  New button and select XML transformation with
                     XQuery. Transformation Scenarios to display this view. Click the
                  New button and select XML transformation with
                     XQuery.
All three methods open the New Scenario dialog box.
The upper part of the dialog box allows you to specify the Name of the transformation scenario and the following Storage options:
- Project Options - The scenario is stored in the project file and can be shared with other users. For example, if your project is saved on a source versioning/sharing system (CVS, SVN, Source Safe, etc.) or a shared folder, your team can use the scenarios that you store in the project file.
- Global Options - The scenario is saved in the global options that are stored in the user home directory and is not accessible to other users.
The lower part of the dialog box contains several tabs that allow you to configure the options that control the transformation.
