Solved

Multiple condition in XML Templater

  • 21 March 2018
  • 2 replies
  • 5 views

Badge +1

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

icon

Best answer by takashi 21 March 2018, 16:51

View original

2 replies

Userlevel 2
Badge +17

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= ....
Badge +1

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