Skip to main content

Hello,

please, I try to compress more conditions into XML Templater in Root template, but unfortunately desktop refuses to run up translation repeatedly, because he misses comma between conditions. But, as You can see below, comma is there?

Log is below:

Does anybody know please, how to correct the statement?

Thank You so much!

Lubo

Hi @lazarlubomir, try removing the XML declaration <?xml version="1.0" encoding="UTF-8"?>.

If you want to add the XML declaration explicitly, put it on the top of the entire expression just once. like this.

<?xml version="1.0" encoding="UTF-8"?>
if (fme:get-attribute("segmenty{4}") eq "A250")
then
<svg width= ....

Hi @lazarlubomir, try removing the XML declaration <?xml version="1.0" encoding="UTF-8"?>.

If you want to add the XML declaration explicitly, put it on the top of the entire expression just once. like this.

<?xml version="1.0" encoding="UTF-8"?>
if (fme:get-attribute("segmenty{4}") eq "A250")
then
<svg width= ....
@takashi Great, it works! Thank You so much!

 


Reply