You are here: Popular Formats > XML (Extensible Markup Language) Reader/Writer > xfMap > Mapping Rules (Optional Elements) > Use-Mappings Element (supplying the parameters)

Use-Mappings Element (supplying the parameters)

The optional <use-mappings> element must be the last element in a mapping rule. This element contains a sequence of one or more <use> elements that identifies a mapping rule by its signature name through the name attribute:

<mapping match=”...”>
	...
	<use-mappings>
		<use name=”myMappingRule1”/>
		<use name=”myMappingRule2”/>
		...
    </use-mappings>
</mapping>

The above only specifies parameter-less mapping rules. To supply the parameters for a mapping rule, the <use> element may optionally have an <args> element. The <args> element can have one or more <arg> elements that take expression sequences as their values:

<mapping match=”...>
	...
	<use-mappings>
		<use name=”myMappingRule1”/>
			<args>
				<arg> <!-- arg0 --> </arg>
				...
				<arg> <!-- argN --> </arg>
			</args>
		</use>
	...
	</use-mappings>
</mapping>

The myMappingRule1 mapping rule’s signature must contain (N+1) named parameters.