Skip to main content
Solved

Multiple condition in XML Templater

  • March 21, 2018
  • 2 replies
  • 85 views

lazarlubomir
Contributor
Forum|alt.badge.img+10

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= ....
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • 7843 replies
  • 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+10
  • Author
  • Contributor
  • 165 replies
  • 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= ....
@takashi Great, it works! Thank You so much!