属性元素

Afeature mapping rulecan contain optional属性sthat specifies one or more attributes for the FME feature that is under construction.

这个属性sis composed by one or more属性,每个属性has a名称and avaluethat have表达序列as their values. They are represented in xfMap by the<属性>,,<姓名>,and<值>元素:

<属性!--表达式序列--><!--表达式序列-->。。。<属性>。。。。。。

注:在特征映射规则中,元素的定义必须出现在元素的定义之后。

以下xfMap文档,属性.xmp,包含映射规则,与<点>element from the第oints1.xml文件。contains an<属性>元素,该元素指示XML读取器为正在构造的FME功能设置一些属性。

属性.xmp

 <”!--a1--><!--a2--><!--a3--><!--a4--><!--下面的表达式序列将此属性的值构造为:“r=x,g=y,b=z”,其中x,y,z是实数-->!--a5--><!--下面的表达式序列将此属性的值构造为:“x:a y:b”,其中a、b是实数-->

第oints1.xmland the above属性.xmpdocuments are fed into the XML Reader the following FME features are constructed:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
功能类型:~myPoint\u 0'
Attribute: ~blue' has value 0.596'
Attribute: ~color' has value r=0.324,g=0.233,b=0.596'
属性:~green'的值为0.233'
属性:~location'的值为x:10.0 y:0.0'
属性:~red'值为0.324'
属性:~xml\u type'具有值xml\u no\u geom'
几何体类型:未知(0)==============================================================
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
特征类型:~myPoint\u 1'
属性:~blue'值为0.554'
属性:~color'的值r=0.874,g=0.948,b=0.554'
属性:~green'值为0.948'
属性:~location'的值为x:5.0 y:5.0'
Attribute: ~red' has value 0.874'
属性:~xml\u type'具有值xml\u no\u geom'
几何体类型:未知(0)
==============================================================