Conditional formatting in XML rtf Template (want to format the cell to red color when total is < 0) — Oracle Analytics

Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Conditional formatting in XML rtf Template (want to format the cell to red color when total is < 0)

Received Response
592
Views
3
Comments

Summary

Conditional formatting in XML rtf Template (want to format the cell to red color when total is < 0)

Content

Hi,

I want to conditionally format the cell to red color when when the total is < 0. I used the below tag, it is giving me error "Caused by: oracle.xdo.parser.v2.XSLException: <Line 136, Column 100>: XML-22047: (Error) Invalid instantiation of 'Attribute' in 'Element' context.".

Tag used:

<?if:CF_DELTA_BG_TOT<0?>

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

Appreciate help.

Screenshot below. (output type : excel)

image

Thanks

Sreedhar

Answers