IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Using Global Resources for Schema Files Options · View
sbrady
Posted: Friday, September 11, 2009 10:25:06 AM
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):
mapforce.jpg

bvkeirsb
Posted: Wednesday, November 18, 2009 10:31:13 PM
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.
vlad
Posted: Wednesday, November 18, 2009 10:44:13 PM
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.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.