Creating a Mapping
Before you can create a mapping, you must have a project to contain mappings. Additionally, you must read and understand the requirements for using complex schemas in a mapping.
Schemas can be complex and can import or include other schemas. If you use complex schemas in your mapping, the mapping must meet these requirements for the Mapper to be able to correctly import all the relevant schemas into the Mapping project:
-
All referenced schemas must be present on disk. References to non-local schemas are not valid, for example http://some/url/somewhere/aschema.xsd.
-
All references must be relative to the folder with the root schema.
For example, if root schema
A.xsd, import schemaB.xsd, andC.xsdare located in sub-foldersFBandFCto the folderA, the reference paths must be/FB/B.xsdand/FC/C.xsdrespectively.Relative paths against the root schema location are also valid, for example if schema A, B, and C are located in the following structure then, B may import C as
../C.xsdMY_FOLDER/A.xsdMY_FOLDER/SUB_FOLDER/B.xsdMY_FOLDER/SUB_FOLDER/C.xsd,
Follow these guidelines:
-
If the schemas do not meet these criteria, you must edit the schemas before you use the schemas.
-
The mapping name must be a valid Java class name.