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 schema B.xsd, and C.xsd are located in sub-folders FB and FC to the folder A, the reference paths must be /FB/B.xsd and /FC/C.xsd respectively.

    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.xsd

    MY_FOLDER/A.xsd

    MY_FOLDER/SUB_FOLDER/B.xsd

    MY_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.