I have a simple GML file with one building in it. When i run the file in FME to simply write it again without any operation somehting very strange happens. FME replaces the xlink.href statements in the data with the original data form the reference which already includes a gml:id and that duplicates the IDs in the file.
for example:
Original data:
<gml:MultiSurface>
<gml:surfaceMember xlink:href="#p_r_2"></gml:surfaceMember>
</gml:MultiSurface>
...
...
...
<gml:Polygon gml:id="p_r_2">
<gml:exterior>
<gml:LinearRing>
<gml:posList>2.00 0.00 3.00 2.00 2.00 3.00 1.00 2.00 3.50</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
Will become this:
<gml:MultiSurface>
<gml:surfaceMember>
<gml:Polygon gml:id="p_r_2">
<gml:exterior>
<gml:LinearRing>
<gml:posList>2.00 0.00 3.00 2.00 2.00 3.00 1.00 2.00 3.50</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
...
...
...
<gml:Polygon gml:id="p_r_2">
<gml:exterior>
<gml:LinearRing>
<gml:posList>2.00 0.00 3.00 2.00 2.00 3.00 1.00 2.00 3.50</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
And you can see there is a duplicate of gml:id="p_r_2".
Is there anyway to avoid this ? by telling fme not to replace hrefs references and leave them as they are ?