- XML (Extensible Markup Language) Reader/Writer
- XML Quick Facts
- Workbench XML Reader Parameters
- Workbench XML Writer Parameters
- Feature Representation
- Mapping File Reference
- xfMap
- Reading the Input XML Document
- Mapping Rules
- Types of Mapping Rules
- Match and Except Expression
- Specifying Several Match Expressions for One Mapping Rule
- Limiting Mapping Rule Activation with Except Expressions
- Mapping Rule States (activation, execution, suspension, and de-activation)
- Using Force Elements During Mapping Rule Activation and Deactivation
- Search-sets
- Expression Elements (Extract and Literal)
- Expression Sequence
- Feature Mapping Rules
- FME Feature Construction
- Feature Type Element
- Attributes Element
- FME Feature Construction (defining mapping rules under the <feature-content-map> element)
- Attribute Element (handling multiple values)
- Attribute Element (handling optional attributes)
- Attribute Element (sequenced attributes)
- Attribute Element (Nillable Attributes)
- Geometry Element
- Geometry Builder States (activation, execution, suspension, and de-activation)
- Geometry Construction
- Composite Geometry Builders
- Built-in Geometry Builders
- Mapping Segmented Geometric Information
- Geometry Traits (trait element)
- FME Feature Construction (constructing multiple features at a time)
- Structure Element
- References Element
- Apply References Element
- Group Mapping Rules
- Reference Mapping Rules
- Mapping Rules (Optional Elements)
- More Expression Elements
- FME Schema Features
- Reading the Input XML Document
Expression Element (parmval Expressions)
The parmval expression allows access to the mapping rule’s parameters by referring to them by name in its expression string. The parmval expression is represented in xfMap by the <parmval> element; its expr attribute holds the value of its expression string:
<parmval expr="the-name-of-a-mapping-rule-parameter"/>
The actual value for a parameter in an activated mapping rule R1 must be supplied by a mapping rule R0, where R0 is the mapping rule that got suspended when R1 activated.
The expr value for the parmval expression may be optionally specified via a named argument. This allows the expr value to be constructed programatically by an expression sequence. The argument must be named ‘expr’ and it must take the following form:
<parmval><arg named="expr">...any expression sequence...</arg></parmval>
For example, the following mapping rule sets the feature type with a parmval expression:
<mapping match=’...’> <signature name=’myRule’> <params> <param name=”firstParam”/> <param name=”theFeatureType”/> </params> </signature> <feature-type> <parmval expr=”theFeatureType”/> <literal expr=”_”/> <parmval> <arg name=”expr”> <literal expr=”firstParam”/> </arg> </parmval> </feature-type> </mapping>