![]() |
| Previous Top Next |
Files |
In the Global Resource dialog for Files (screenshot below), you can add a file resource as follows:

| 1. | Enter an alias name. |
| 2. | The Configurations pane will have a configuration named Default (screenshot above). This Default configuration cannot be deleted nor have its name changed. You can enter as many additional configurations for the selected alias as you like. Add a configuration by clicking the Add Configuration icon |
| 3. | Select one of the configurations in the Configurations pane and then define the resource to which this configuration will map. In the Settings for Configuration X pane, you can select whether the resource is a file, or the result of either an Altova MapForce or Altova StyleVision transformation. After selecting the resource type by clicking its radio button, browse for the file, MapForce file, or StyleVision file. Where multiple inputs or outputs for the transformation are possible, a selection of the options will be presented. For example, if the Result of StyleVision Transformation was selected as the resource type, the output options are displayed according to the what edition of StyleVision is installed (the screenshot below shows the outputs for Enterprise Edition). |

Select the radio button of the desired option (in the screenshot above, 'HTML output is selected). The result of a transformation can itself be saved as a global resource or as a file path (click the
icon and select, respectively, Global Resource or Browse). If neither of these two saving options is selected, the transformation result will be loaded as a temporary file when the global resource is invoked.
| 4. | Specify a resource for each configuration (that is, repeat Step 3 above for the various configurations you have created). |
| 5. | Click OK in the Global Resource dialog to save the alias and all its configurations as a global resource. The global resource will be listed under Files in the Global Resources dialog. |
Selecting Result of MapForce transformations as a global resource
Altova MapForce maps one or more (already existing) schemas to one or more (new) schemas designed by the MapForce user. XML files corresponding to the input schemas are used as data sources, and an output XML file based on the user-designed schema can be generated by MapForce. This generated output file (Result of MapForce Transformation) is the file that will be used as a global resource.
In a MapForce transformation that has multiple output schemas, you can select which one of the output schemas should be used for the global resource by clicking its radio button (screenshot below). The XML file that is generated for this schema can be saved as a global resource or as a file path (click the
icon and select, respectively, Global Resource or Browse). If neither of these options is selected, a temporary XML file is created when the global resource is used.

Note that each Input can also be saved as a global resource or as a file path (click the
icon and select, respectively, Global Resource or Browse).
See also:
Using Global Resources, for a description of how Global Resources can be used in an SPS.
Tools | Active Configuration, for the menu command to change the active configuration of the application.
Toolbars and Status Bar, for information about the Global Resources toolbar.
|