Types of Mapping Rules

A mapping rule must be defined inside an <X-map> or <X-content-map> element, where X may be substituted by either feature, group, or reference. This means that the containing element determines the mapping rule’s type.

All mapping rules, regardless of their type, are represented in xfMap by the <mapping> element. A mapping rule has the following form:

<mapping match="...">
	<!-- mapping rule contents -->	
</mapping>

The types of mapping rule and their corresponding containing elements are:

  • feature mapping rules: These specify the construction of FME features, and they must be defined inside the <feature-map> or <feature-content-map> elements.
  • group mapping rules: These specify the construction of xfMap groups, and they must be defined inside the <group-map> or <group-content-map> elements.
  • reference mapping rules: These specify the construction of xfMap references, and they must be defined inside the <reference-map> or <reference-content-map> elements.

Each mapping rule type will be described in separate sections: Feature Mapping Rules,Group Mapping Rules, and Reference Mapping Rules.

The following section describes the mapping rule’s match expression and states. Every mapping rules may also contain some optional elements, which are discussed in Mapping Rules (Optional Elements).