|
|
Rank: Newbie
Joined: 9/11/2009 Posts: 5 Location: Ireland
|
The mapforce (2009) manual states file locations can be defined as global resources, however, I can't seem to use global resource reference for Schema files.
For example, I have a global directory resource setup - TestDir pointing to "C:\dev\Altova\Mapforce\MappingDir\Test", I can navigate and add the schema and input xml files using glogal resource view, however, when the component is added the absolute path is added for the schema in the component settings.
Schema file C:\Altova\Mapforce\MappingDir\Test\schema.xsd
Input XML Instance altova://folder_resouce/TestDir/example.xml
How can I use global resource references for Schema files? sbrady attached the following image(s):

|
|
Rank: Newbie
Joined: 7/3/2008 Posts: 4
|
I ran into the same problem. After having selected a global resource as an xsd file it referts to a full path and you can change and or adjust this global resources assignment anymore. Futhermore a change in the global resources doesn't get reflected.
In MF 2010 the schema path is no longer readonly so you can actually construct a similar path as the you've done for the input xml instance in your example, in particular: altova://folder_resource/TestDir/schema.xsd
The Altova mapforce (2010) help file showed me a pointer to this solution: look for the Assigning a global resource topic in the MF help file: Global Resources > Global Resources - Files > Assigning a global resource. That in addition to the schema file location no longer being readonly in MF 2010.
I still consider this somewhat problematic as a user should just be able to select a global resource and it should be reflected correctly without requiring manual edits.
|
|
Rank: Advanced Member
Joined: 12/13/2005 Posts: 2,856 Location: Mauritius
|
There is a big potential issue with using Global Resources for XML Schema. In contrary to XML instances, when you switch the Global Resource Configuration, you can potentially completely break your own mapping, because the underlying schema has changed. Therefore for XML instances MapForce will insert a dynamic Global Resource path, but not for XML Schema.
|
|
|
guest |