Table row background color output class not working with DITA-OT 2.3.3
Posted: Wed Mar 29, 2017 11:42 pm
Hello,
For some reason, code that works fine with DITA-OT 1.8 doesn't seem to work with DITA-OT 2.3.3. In both instances I'm using the FO processor and
the DITA-OTs that come with Oxygen 18.
I have the following code in my customization to set the background color of a row to either grey or blue based on the output class.
The attribute sets are also in my customization:
Do you know why it's not working with DITA-OT 2.3.3?
Thanks.
For some reason, code that works fine with DITA-OT 1.8 doesn't seem to work with DITA-OT 2.3.3. In both instances I'm using the FO processor and
the DITA-OTs that come with Oxygen 18.
I have the following code in my customization to set the background color of a row to either grey or blue based on the output class.
Code: Select all
<xsl:template match="*[contains(@class, ' topic/tbody ')]/*[contains(@class, ' topic/row ')]">
<xsl:choose>
<xsl:when test="contains(@outputclass, ' bluerow ')">
<fo:table-row xsl:use-attribute-sets="blue.row">
<!-- <xsl:call-template name="commonattributes"/>
<xsl:apply-templates/> -->
</fo:table-row>
</xsl:when>
<xsl:when test="contains(@outputclass, ' greyrow ')">
<fo:table-row xsl:use-attribute-sets="grey.row">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:table-row>
</xsl:when>
<xsl:otherwise>
<fo:table-row xsl:use-attribute-sets="tbody.row">
<xsl:call-template name="commonattributes"/>
<xsl:apply-templates/>
</fo:table-row>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
Code: Select all
<xsl:attribute-set name="grey.row">
<xsl:attribute name="background-color">#E7E6E6</xsl:attribute>
<xsl:attribute name="color">black</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="blue.row">
<xsl:attribute name="background-color">#EBF0F9</xsl:attribute>
<xsl:attribute name="color">black</xsl:attribute>
</xsl:attribute-set>
Thanks.