Maprule.Expressions

TheMaprule.expr.ession provides information about mapping rules. It is represented in the xfMap document with theelement, and it has the following general form:

The表达式字符串(即,expr.attribute) specifies the type of mapping rule information.

The following lists the valid values the表达式字符串可能需要:

activate-count:

返回映射规则已激活的次数。

例子

The example below illustrates several of the反对表达operations.

bin.xml.

  I’m some sort of item inside this bin. What type of item may I be? I wouldn’t know. Why should I? Ask the bin. 

Maprule..xmp

<?xml版本=“1.0”?> <!doctype xfmap系统“xfmap.dtd”>       <属性> <属性>        <属性>    <值> <Maprule.expr.=”activate-count”/>      

FME features constructed:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item' Attribute(string): `mapping-rule-activate-count' has value `1' Attribute(string): `value' has value `I'm some sort of item inside this bin.' Attribute(string): `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item' Attribute(string): `mapping-rule-activate-count' has value `2' Attribute(string): `value' has value `What type of item may I be?' Attribute(string): `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item' Attribute(string): `mapping-rule-activate-count' has value `3' Attribute(string): `value' has value `I wouldn't know.' Attribute(string): `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item' Attribute(string): `mapping-rule-activate-count' has value `4' Attribute(string): `value' has value `Why should I?' Attribute(string): `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item' Attribute(string): `mapping-rule-activate-count' has value `5' Attribute(string): `value' has value `Ask the bin.' Attribute(string): `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) ===================================================================