BI Publisher (MOSC)

MOSC Banner

BI Publisher: How to make the cell color controlled by color code from XML data

edited Jan 23, 2025 2:49PM in BI Publisher (MOSC) 8 commentsAnswered

I am using the BI Publisher in Oracle eBusiness Suite R12.2.

There have been many questions about controlling the cell color and answers too. But the color name/code is hardcoded in the RTF template.

<xsl:attribute xdofo:ctx="block" name="background-color">#F8CBAD</xsl:attribute>

In my case, the color code is coming from a front-end setup & derived to the XML data.

I want the color to be controlled dynamically by that color code - <LEGEND_COLOR>#F8CBAD</LEGEND_COLOR>

If I try the following, it's printing the cell background black (#000000) & prints data in the cell.

<xsl:attribute xdofo:ctx="block" name="background-color"><?LEGEND_COLOR?></xsl:attribute>

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center