I am new to lists and xml in FME and having a bit of trouble. I am using the XMLTemplator to populate an XML tag using a list value. The following works as it should.
{
for $Contact_id in fme:get-list-attribute("Contact{}")
return <NRWContact>{$Contact_id}</NRWContact>
}
However I am also using a different list which has been produced using the list builder and the name of the list is appended on the end so can get it to recognise it to get the value.
{
for $ExcelColumnName_id in {fme:get-list-attribute("list{}.ExcelColumnName")}
return
<Location>$ExcelColumnName_id</Location>
}
This just returns “<Location>$ExcelColumnName_id</Location>” and not the value from the list e.g <Location>Column B</Location>”. Hopefully it’s a simple tweak but I have not stumbled across it yet or found the same thing on the community.


