You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fallbackImage attribute doesn't have equivalent representation in bodyXML.
alt attribute
The bodyXML flourish tag has an alt attribute which is not present in the content tree node. It seems widely used, around 4618 articles with flourish graphics have non empty alt attribute of their flourish tags.
<ft-contenttype="http://www.ft.com/ontology/content/Content"url="http://api.ft.com/content/21484860"alt="Extra navigation controls which are active with web connect"data-asset-type="flourish"data-embedded="true"data-flourish-type="visualisation"data-layout-width=""data-time-stamp="2025-03-07T17:35:27.334Z"id="21484860">
</ft-content>
Possible approaches
It seems reasonable to extend the content tree definition of Flourish node to include the alt attribute. It is open question how fallbackImage should be transformed in bodyXML.
The text was updated successfully, but these errors were encountered:
I think fallbackImage needs to be external - CP fetches this from Flourish's API so it isn't part of the content platform.
The lack of alt text is funny. I'm not entirely sure what the intention was - whether it's supposed to be the alt attribute for the fallback image, or text to show to users when the flourish frame doesn't load (alongside the fallback image). Maybe need someone from Storytelling to confirm
In our transformer in from-bodyxml we are mapping the alt attribute to description in content-tree.
In cp-content-pipeline it is mapping a non-existent description attribute to description.
In Spark, it's doing something weird.
So I think from-bodyxml is correct, cp-content-pipeline and spark are incorrect
Background
The
Flourish
node in content tree is defined as:In
bodyXML
, a flourish graphic is represented as link of type<ft-content>
. Example What Brussels’ new industry chief plans for Europe’s car industry, Dec 2024:fallbackImage
attributeThe
fallbackImage
attribute doesn't have equivalent representation in bodyXML.alt
attributeThe
bodyXML
flourish tag has analt
attribute which is not present in the content tree node. It seems widely used, around 4618 articles with flourish graphics have non emptyalt
attribute of their flourish tags.Example Trump tracker: US tariffs, Apr 2025:
Possible approaches
It seems reasonable to extend the content tree definition of
Flourish
node to include thealt
attribute. It is open question howfallbackImage
should be transformed inbodyXML
.The text was updated successfully, but these errors were encountered: