I convert input features to XML using XMLTemplater. Everything is fine as long it is done through the same sub-template. When I try to process some attributes (coordinates reading) by calling another sub-template it fails.
This sub-template works properly
**OBJECT Sub-Template**
{<object
id="{fme:get-attribute("id")}"
visible="{fme:get-attribute("visible")}"
lon="{geom:get-y-coord()}"
lat="{geom:get-x-coord()}" >
</object>}
This one, calling another sub-template, doesn't work.
**OBJECT Sub-Template**
{<object
id="{fme:get-attribute("id")}"
visible="{fme:get-attribute("visible")}"
{fme:process-template("XY")} > Here is the syntax error: unexpected character "{" near line 4, column 5 .
</object>}
**XY Sub-Template**
{ lon="{geom:get-y-coord()}"
lat="{geom:get-x-coord()}" }
I did try a lot of things but I still don't see what the problem is 😞
Thanks for any help...