![]() |
| Previous Top Next |
Altova Global Resources |
Altova Global Resources is a collection of aliases for file, folder, and database resources. Each global resource is an alias that can have multiple configurations, with each configuration mapping to a single resource (file, folder, or database).
Therefore, when a global resource is used as an input, the global resource can be switched among its configurations. This is done easily via controls in the GUI. For example, if an XSLT stylesheet for transforming an XML document is assigned via a global resource, then we can set up multiple configurations for the global resource, each of which points to a different XSLT file. After setting up the global resource in this way, switching the configuration would switch the XSLT file used for the transformation.
A global resource can not only be used to switch resources within an Altova application, but also to generate and use resources from other Altova applications. So, files can be generated on-the-fly in one Altova application for use in another Altova application. All of this tremendously eases and speeds up development and testing. For example, an XML file can be generated by an Altova MapForce mapping and used as an XML Working File in an SPS.
Using Altova Global Resources involves two processes:
| • | Defining Global Resources: Resources are defined and the definitions are stored in an XML file. These resources can be shared across multiple Altova applications. |
| • | Using Global Resources: Within an Altova application, files can be located via a global resource instead of via a file path. The advantage is that the resource being used can be instantly changed by changing the active configuration in StyleVision. |
Global resources in other Altova products
Currently, global resources can be defined and used in the following individual Altova products: XMLSpy, StyleVision, MapForce, and DatabaseSpy.
See also:
Tools | Global Resources, for the menu command to access the Altova Global Resources dialog.
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.
|