Skip to main content
Solved

Multiple condition in XML Templater


lazarlubomir
Contributor
Forum|alt.badge.img+7

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

Best answer by takashi

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= ....
View original
Did this help you find an answer to your question?

2 replies

takashi
Influencer
  • Best Answer
  • March 21, 2018

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= ....

lazarlubomir
Contributor
Forum|alt.badge.img+7
  • Author
  • Contributor
  • March 21, 2018
takashi wrote:

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!

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings