This is probably a simple question, but I'm having difficulty rounding values within the xml editor of the XMLTemplator.
With the root template set to:
<feature>
<number>{fme:get-attribute("NUMBER")}</number>
</feature>
The NUMBER value is written in the output. But when I use:
<feature>
<number>@round({fme:get-attribute("NUMBER")},3)</number>
</feature>
or even:
<feature>
<number>@Evaluate(@round({fme:get-attribute("NUMBER")},3))</number>
</feature>
the xml returned contains an empty string:
<?xml version="1.0" encoding="UTF-8"?>
<feature>
<number/>
</feature>
I could round with an AttributeRounder prior to the XMLTemplater, but although that rounds the values in Visual Preview, the xml output can and does contain the floating point representation errors.
I'm guessing this might be a syntax thing but I've had no joy yet implementing this in the editor.
(FME 2020.1 b20620)