Hello All,
A quick search turned up nothing. I'm a Perl programmer working with XML. I am working on an app that creates a large detailed XML file and I need to generate a second format from that larger/detailed file. We're already using XSLTs to create concise versions of the larger report. So, I'd like to write an XSLT for this new format. I have Altova MapForce and doing the mapping from schema1 to schema2 would be trivial except that the second format/schema relies on some imports of other remote schema that are invalid. MapForce won't/can't open the second schema. XMLSpy reports that a given element in one remote schema is previously defined in another remote schema. This is the first error and there are numerous remote schema that are pulled into the picture. So, I'm expecting to find more.
Two questions, ...I think. First, does it make sense to download all of the remote schemata and change the schemaLocations to the local paths? I'd like to repair the problems so that I can get the second schema to load into MapForce. Both report schema are substantial. Manually mapping the one to the other would be very tedious. I'd really like to use MapForce for this chore.
Second, if the answer to the above is 'yes', then how can I download all of the remote schema? There are imports upon imports upon imports. The pile gets pretty big. Is there a way to tell the Altova tool(s) to pull the entire pile down and use it locally?
Finally, it is expected that those organizations responsible for the invalid remote schema will eventually fix them and once the XSLT is written, we'll revert back to using the remote schemata. And, as is often the case, I can't wait on them. I need to get this stuff pretty well put together and ready for minor tweaks when the remote schemata are fixed.
Thanks for any advice.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
A quick search turned up nothing. I'm a Perl programmer working with XML. I am working on an app that creates a large detailed XML file and I need to generate a second format from that larger/detailed file. We're already using XSLTs to create concise versions of the larger report. So, I'd like to write an XSLT for this new format. I have Altova MapForce and doing the mapping from schema1 to schema2 would be trivial except that the second format/schema relies on some imports of other remote schema that are invalid. MapForce won't/can't open the second schema. XMLSpy reports that a given element in one remote schema is previously defined in another remote schema. This is the first error and there are numerous remote schema that are pulled into the picture. So, I'm expecting to find more.
Two questions, ...I think. First, does it make sense to download all of the remote schemata and change the schemaLocations to the local paths? I'd like to repair the problems so that I can get the second schema to load into MapForce. Both report schema are substantial. Manually mapping the one to the other would be very tedious. I'd really like to use MapForce for this chore.
Second, if the answer to the above is 'yes', then how can I download all of the remote schema? There are imports upon imports upon imports. The pile gets pretty big. Is there a way to tell the Altova tool(s) to pull the entire pile down and use it locally?
Finally, it is expected that those organizations responsible for the invalid remote schema will eventually fix them and once the XSLT is written, we'll revert back to using the remote schemata. And, as is often the case, I can't wait on them. I need to get this stuff pretty well put together and ready for minor tweaks when the remote schemata are fixed.
Thanks for any advice.
'hope this helps
If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.