You are here: Popular Formats > XML (Extensible Markup Language) Reader/Writer > xfMap > Mapping Rules (Optional Elements) > Signature Element
Signature Element
The signature of a mapping rule serves two purposes:
- it identifies the mapping rule by name, and
- it declares some named parameters, which are passed into a mapping rule on activation.
The signature of a mapping rule is defined with the optional <signature> element. The <signature> element has a name attribute that defines the name of the mapping rule. The mapping rule’s optional named parameters are defined via the <signature>’s <params> child element; this element contains a sequence of one or more <param> elements that specify the names of the parameters via their name attribute:
<mapping match=”...”> <signature name=”myMappingRule”/> ... </mapping> <mapping match=”...> <signature name=”myOtherMappingRule”> <params> <param name=”firstParam”/> <param name=”secondParam”/> </params> </signature> </mapping>
myOtherMappingRule has two named parameters: firstParam, and secondParam. The value of a named parameters is a expression sequence and it may be access via the parmval expression element.