反对表达

计数器表达式在表达序列上提供计数功能。它具有以下一般形式:

peek =“true | false”重置=“true | false”/>

要么

  ...   ...   ...  ...   ...  

注意:计数器表达式支持向后兼容性的位置参数,但建议使用命名参数。

计数器使用位置参数时,表达式采用以下形式:

  <! -  expr  - >   <! -  start-value  - >   <! -  modulo  - >  <! -  scope  - >   <! -  peek  - >  

使用位置参数时,无法更改参数的顺序,以便指定五个值中的任何一个arg,还必须指定前面的所有值。

一个计数器expression计算积分值。在评估后计数器expression将返回其当前的积分值,然后更新其计数器1. The表达式字符串(i.e., theexpr属性)名称计数器。

所有属性都是可选的(默认为空字符串expr,零modulo.and起始价值,本地范围,虚假窥视,虚假重启)。

起始价值specifies the initial value for the计数器expressionmodulo.允许的算术当计数器的时钟样式价值e is updated. A modulo of zero implies nomodulo.规范。计数器是默认绑定到映射规则激活的生命周期。绑定超越这一寿命的柜台范围可以使用属性。有效值范围property are本地,这是默认值,父母它使用父节点的范围,以及XFMAP.。指定XFMAP.for the范围将计数器绑定到XFMAP。访问计数器的值而不更新其值可选窥视属性,其默认值是, should be set totrue。该重启属性可用于返回其启动值的计数器。

指定属性的能力计数器由于参数允许基于正在读取的文档来动态确定这些属性。如果参数评估到空字符串,则忽略其值(并且使用默认值,或者在与非柜台中的先前建立的值本地范围)。该重启property cannot be set dynamically; it can only be set via the重启归属于计数器元件。

下面的示例说明了几个计数器expression操作。

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.

<?xml version =“1.0”?>   <映射匹配=“bin”>  <属性集> <属性> <属性>      <属性>         <属性> <属性>                 <功能类型> <文字expr =“项目”/>  <属性> <属性>           

FME构造的功能:

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++功能类型:`item_LOGGED”属性(编码:UTF-16):`计数模2' 具有值`0'属性(字符串):`fme_feature_type'具有值`项'属性(字符串):`fme_type'具有值`fme_no_geom'属性(编码:utf-16):`物品订单in-bin'具有值`0'属性(编码:utf-16):`某种垃圾计数器'有值`5'属性(编码:utf-16):`值'有值`。'属性(字符串):`xml_type'具有值`xml_no_geom'几何类型:未知(0)=========================================================================== ++++!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++功能类型:`item_LOGGED”属性(编码:UTF-16):`计数模2' 具有值'1' 属性(串):`fme_feature_type'有值`项'属性(字符串):`fme_type'具有值`fme_no_geom'属性(编码:utf-16):`物品订单in-bin'具有值`1'属性(编码:UTF-16):“某些其他柜台”有值`6'属性(编码:UTF-16):“值”有价值`。'属性(字符串):`xml_type'具有值`xml_no_geom'几何类型:未知(0)=========================================================================== ++++!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++功能类型:`item_LOGGED”属性(编码:UTF-16):`计数模2' 具有值'0' 属性(串):`fme_feature_type'具有值`项'属性(字符串):`fme_type'具有值`fme_no_geom'属性(编码:utf-16):`itst-in-in-bin'具有值`2'属性(编码: utf-16): `some-other-counter' has value `7' Attribute(encoded: utf-16): `value' has value `.' Attribute(string) : `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =========================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item_LOGGED' Attribute(encoded: utf-16): `count-modulo-2' has value `1' Attribute(string) : `fme_feature_type' has value `item' Attribute(string) : `fme_type' has value `fme_no_geom' Attribute(encoded: utf-16): `item-order-in-bin' has value `3' Attribute(encoded: utf-16): `some-other-counter' has value `8' Attribute(encoded: utf-16): `value' has value `.' Attribute(string) : `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) =========================================================================== +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Feature Type: `item_LOGGED' Attribute(encoded: utf-16): `count-modulo-2' has value `0' Attribute(string) : `fme_feature_type' has value `item' Attribute(string) : `fme_type' has value `fme_no_geom' Attribute(encoded: utf-16): `item-order-in-bin' has value `4' Attribute(encoded: utf-16): `some-other-counter' has value `9' Attribute(encoded: utf-16): `value' has value `.' Attribute(string) : `xml_type' has value `xml_no_geom' Geometry Type: Unknown (0) ===========================================================================