Hi list.
I'm currently trying to generate a composite XML using XmlTemplater.
One of the details is that tags without text value must not be output at all.
I tried to utilize the following expression (from the help page):
{ if( {fme:has-attribute("mailadresse")} )
then <ler:mailadresse>{fme:get-attribute("mailadresse")}</ler:mailadresse>
else ()}
My expectation (for "else") is that output is only generated if an attribute value is present.
Much to my surprise, "<ler:mailadresse/>" is output instead, even though the attribute value in question is <null>.
Can anyone share how to tweak the expression, so "else" produces absolutely no output ?
And yes, the presence of the "else" part seems to be mandatory.
Using 2020.0