xsl attribute for background-color not working
Posted: Thu Sep 20, 2012 8:26 pm
Hello.
I have set a top level variable for a colour using
<xsl:variable name="my_colour">
<xsl:value-of select="yellow"/>
</xsl:variable>
I have a table defined and I want this variable to be used a s the background colour for a cell so i have added an attribute for background-color witrhthin the block for the cell
<xsl:attribute name="background-color">
<xsl:value-of select="$my_colour"/>
</xsl:attribute>
When I view the fo output it does have the attraibute added but it is null like the following
background-color=""
If I manually add in a colour between the "" and trnasform it then it is fine. Does anyoen know why the fo is not generated to include my colour?
Thanks,
Colm
I have set a top level variable for a colour using
<xsl:variable name="my_colour">
<xsl:value-of select="yellow"/>
</xsl:variable>
I have a table defined and I want this variable to be used a s the background colour for a cell so i have added an attribute for background-color witrhthin the block for the cell
<xsl:attribute name="background-color">
<xsl:value-of select="$my_colour"/>
</xsl:attribute>
When I view the fo output it does have the attraibute added but it is null like the following
background-color=""
If I manually add in a colour between the "" and trnasform it then it is fine. Does anyoen know why the fo is not generated to include my colour?
Thanks,
Colm