You are here:
流行格式
>
XML (Extensible Markup Language) Reader/Writer
>
xfMap
>
More Expression Elements
>
地图规则Expressions
地图规则Expressions
The地图规则出口ession provides information about mapping rules. It is represented in the xfMap document with the
The出口ession string (i.e., the出口属性)指定映射规则信息的类型。
The following lists the valid values the出口ession stringmay take:
激活计数:
Returns the number of times a mapping rule has been activated.
Example
下面的例子说明了几种反表达式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.
地图规则.xmp
<maprule expr=“激活计数”/>
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) ===================================================================