Skip to main content

Something like this (it does't seem to like this) :

 

<td style="color:" {fme:get-attribute("StoragePreviousWeekStartFontColour")} ";padding: 1px 1px 0px 1px; white-space:pre-wrap; word-wrap:break-word; border: 1px solid #d4d4d4">

 

{fme:get-attribute("Storage Mon 31 Aug")}

 

</td>

Is the colour supposed to be in quotation marks? I normally see inline styles like <p style="color:green; font-size:18px;"> Also a semi-colon at the end of style.


Thanks jdh, it got me thinking. I made the mistake of assuming I'd need to differentiate / escape / evaluate between a value in an FME attribute and an attribute in a css html tag - it didn't require this in the end - so this worked:

 

<td style="color: {fme:get-attribute("StorageChange_WWFontColour")};padding: 1px 1px 0px 1px; white-space:pre-wrap; word-wrap:break-word; border: 1px solid #d4d4d4">

 

{fme:get-attribute("Change_WW")}

 

</td>


Reply